public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: grobian@gentoo.org
Subject: Re: [gentoo-dev] [RFC] Initial python-r1.eclass & distutils-r1.eclass
Date: Sun, 30 Sep 2012 15:57:16 +0200	[thread overview]
Message-ID: <20120930155716.5787225a@pomiocik.lan> (raw)
In-Reply-To: <20120930085806.GD912@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

On Sun, 30 Sep 2012 10:58:06 +0200
Fabian Groffen <grobian@gentoo.org> wrote:

> On 30-09-2012 10:31:17 +0200, Pacho Ramos wrote:
> > > > Personally, I usually run:
> > > > - python_clean_py-compile_files -> Clean py-compile files to disable
> > > > byte-compilation allowing us to drop all various ways of doing this that
> > > > were living in the tree some time ago.
> > > 
> > > Hmm, what's the problem with compiling them? Do you mean some case when
> > > the results of the compilation are different from the way done
> > > by the eclass?
> > > 
> > 
> > Well, if I don't misremember, we currently prefer to compile them at
> > postinst phase instead of during src_compile, but maybe this is no
> > longer needed (no idea :( )
> 
> The files are indeed cache, and should be generated on the system that
> installs the files, not the system that builds them.  They are currently
> outside of VDB.  pyc files store the path to the original files, so
> generating in ${ROOT} yields in wrong paths.  Python sometimes
> regenerates the files when it runs.  It may as well just ignore them
> (since they are newer but non-matching, unclear to me).  In the worst
> case it returns "Bad marshalling data".

I'm afraid you are wrong here.

I've just tested an ebuild using distutils (flaggie) and autotools
(pygobject) and both install .pyc files with correct paths (i.e. with
DESTDIR stripped).

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

  parent reply	other threads:[~2012-09-30 13:58 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29  8:53 [gentoo-dev] [RFC] Initial python-r1.eclass & distutils-r1.eclass Michał Górny
2012-09-29 10:00 ` Tomáš Chvátal
2012-09-29 10:23   ` Michał Górny
2012-09-29 10:45   ` Michał Górny
2012-09-29 19:34     ` Luca Barbato
2012-09-29 10:20 ` Markos Chandras
2012-09-29 10:49   ` Michał Górny
2012-09-29 13:49     ` hasufell
2012-09-29 14:19       ` Ian Stakenvicius
2012-09-29 14:26         ` hasufell
2012-09-29 14:37           ` Dirkjan Ochtman
2012-09-29 18:39             ` Michał Górny
2012-09-29 20:48               ` hasufell
2012-09-30 14:01                 ` Michał Górny
2012-09-29 15:37           ` Ian Stakenvicius
2012-09-29 15:45             ` hasufell
2012-09-29 15:50               ` Ian Stakenvicius
2012-09-29 15:54                 ` hasufell
2012-09-29 15:54               ` Ciaran McCreesh
2012-09-29 18:40               ` Michał Górny
2012-09-29 19:20                 ` Pacho Ramos
2012-09-29 20:34                   ` Michał Górny
2012-09-30  8:31                     ` Pacho Ramos
2012-09-30  8:58                       ` Fabian Groffen
2012-09-30  9:47                         ` Pacho Ramos
2012-09-30 13:28                         ` Michał Górny
2012-09-30 13:47                           ` Fabian Groffen
2012-09-30 13:57                         ` Michał Górny [this message]
2012-09-30 14:12                           ` Fabian Groffen
2012-09-30 18:15                             ` Zac Medico
2012-09-30 21:47                         ` Brian Harring
2012-10-01  6:36                           ` Fabian Groffen
2012-10-01  7:19                             ` Brian Harring
2012-10-01 15:17                             ` Marien Zwart
2012-10-01 15:44                               ` Fabian Groffen
2012-09-29 15:47             ` hasufell
2012-09-29 18:35       ` Michał Górny
2012-09-30  5:09   ` Ben de Groot
2012-10-05 12:42 ` Michał Górny
2012-10-25 16:41 ` hasufell
2012-10-25 17:10   ` Ian Stakenvicius
2012-10-25 17:43   ` Michał Górny
2012-10-25 18:55     ` hasufell
2012-10-25 20:13       ` Michał Górny
2012-10-26 18:28         ` hasufell
2012-10-25 20:37       ` Michał Górny
2012-10-25 19:19   ` hasufell
2012-10-25 20:40     ` Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120930155716.5787225a@pomiocik.lan \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=grobian@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox