From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Fix PYC-only installation for Python3
Date: Mon, 28 Jan 2013 00:15:25 +0100 [thread overview]
Message-ID: <5105B50D.1020509@mind.be> (raw)
In-Reply-To: <CADS0akgsXxFp_hnH9=7t6-KFTFdoXOMqtc8UycdfsDDRVFGW2A@mail.gmail.com>
On 27/01/13 23:52, Daniel N wrote:
> Arnout,
>
> Not quite. The commit you reference _does_ remove .py files on PYC_ONLY
> installations, but the logic in python3 will not look for a .pyc file in
> the __pycache__ directory if the parent .py file is not present. Thus, in
> its current incarnation, the PYC_ONLY option breaks python3 at runtime.
>
> python3 does fall back to looking for a .pyc file in the directory that
> it expects the .py to be in.
>
> http://www.python.org/dev/peps/pep-3147/#flow-chart
Okay, in that case your patch looks good.
Regards,
Arnout
PS Please avoid top-posting.
>
> Daniel
>
>
> On Sun, Jan 27, 2013 at 2:42 PM, Arnout Vandecappelle <arnout@mind.be
> <mailto:arnout@mind.be>> wrote:
>
> On 27/01/13 20:03, Daniel Nelson wrote:
> > All,
> >
> > This is my first buildroot/open source submission. I'd appreciate
> some feedback.
> >
> > Python3 changes the behavior of .pyc caching, breaking the
> PYC-only option in buildroot. The details are
> inhttp://www.python.org/dev/peps/pep-3147
> <http://www.python.org/dev/peps/pep-3147>
> >
> > I've added a configure flag to Python3, and corresponding logic in
> buildroot.
>
> Hasn't this been fixed in git 6ffab129 ?
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2013-01-27 23:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 19:03 [Buildroot] [PATCH] Fix PYC-only installation for Python3 Daniel Nelson
2013-01-27 22:42 ` Arnout Vandecappelle
2013-01-27 22:52 ` Daniel N
2013-01-27 23:15 ` Arnout Vandecappelle [this message]
2013-01-27 23:36 ` Arnout Vandecappelle
2013-01-27 23:43 ` Daniel N
2013-01-27 23:49 ` Arnout Vandecappelle
2013-01-28 1:38 ` [Buildroot] [PATCHv2] python3: Fix pyc-only related runtime exceptions Daniel Nelson
2013-01-28 21:04 ` Peter Korsgaard
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=5105B50D.1020509@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.