This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PYTHONBYTECODEBASE patch (PEP 304)
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: loewis, skip.montanaro, stevenknight
Priority: normal Keywords: patch

Created on 2003-01-29 22:49 by skip.montanaro, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bcb.diffs.gz skip.montanaro, 2005-06-17 11:24
Messages (11)
msg42581 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-01-29 22:49
This is just a placeholder patch related to PEP 304.  Feel free to
comment on it.  It's far from complete at this point.  The first
patch is just to see if we can do all the proper detection at
startup.  These checks have to be performed before any .py
files are imported, otherwise you'd have some .pyc files dumped
out before the machinery is ready to go.

The first patch contains mods to sysmodule.c with next to
no concern for platform independence.  There is a small shell
script and a few expected output files which are used to
test setting of various values.  These should probably be
wrapped into regular PyUnit tests which popen() the interpreter
with different settings, but this seemed quicker as a start.
msg42582 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-01-29 22:52
Logged In: YES 
user_id=44345

second upload try - what the hell is with SF?
msg42583 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-01-30 22:33
Logged In: YES 
user_id=44345

Here's an updated context diff.  It seems to do the right thing on my
Mac OS X system.  It won't currently do anything on Windows ( need help
there).  No more test cases, but if PYTHONBYTECODEBASE points to
a valid directory, the .pyc files seem to get put in all the right places.

To get the behavior, you'll have to configure --with-bytecodebase.

Feedback, please...
msg42584 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-01-30 22:51
Logged In: YES 
user_id=44345

While not technically broken, the patch I just posted is a bit bent.
Withdrawing for a little fixup...
msg42585 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-01-31 17:37
Logged In: YES 
user_id=44345

Another patch.  This one fixes the problems of the one I withdrew yesterday.
There are still problems:

* A half dozen regression tests fail for various reasons which I haven't
completely investigated.

* Nothing has been done for Windows.  Someone will have to step up to
the plate for this.  I can't build on Windows.
msg42586 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-11-14 22:48
Logged In: YES 
user_id=44345

Patch updated for current CVS (~ 2.4b2).
msg42587 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-11-14 23:12
Logged In: YES 
user_id=44345

*sigh* - let's try again...
msg42588 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-06-17 01:26
Logged In: YES 
user_id=44345

Update patch for current CVS (2.5a0)...
msg42589 - (view) Author: Steven Knight (stevenknight) Date: 2005-12-16 15:15
Logged In: YES 
user_id=216109

Skip--

Is there any interest in this patch getting accepted into
core Python?  Are there any other known barriers apart from
the Windows issues?

If this would likely be accepted once the Windows issues are
worked out, I might be able to spend some time looking at
the Windows side.

        --SK
msg42590 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-12-16 16:15
Logged In: YES 
user_id=44345

I sorta lost interest (it was never really anything I
needed anyway) when the Windows problems were raised,
especially after nobody suggested fixes.  If you'd like to
update the patch and perhaps champion it, be my guest.

Skip
msg42591 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-03-05 14:11
As the PEP was withdrawn, also, I'm closing this patch as rejected.
History
Date User Action Args
2022-04-10 16:06:18adminsetgithub: 37867
2003-01-29 22:49:34skip.montanarocreate