Ned Deily <n...@acm.org> added the comment:

Fixing sys.executable to point to the stub launcher instead of the interpreter 
in the fw will also fix other unrelated issues, like making python3-32 work 
properly in 64-/32-bit builds for IDLE and for tests that spawn interpreters in 
subprocesses.  Today, while the main process is 32-bit,  the interpreters in 
subprocesses are 64-bit.

I did a little clean up and fixed up the documentation somewhat; see the 
revised patch.  But building a stock installer and running the tests showed two 
issues:
1) test_osx_env fails at line 28, checking PYTHONEXECUTABLE
2) when running the tests within a venv, test_venv now fails at line 95;
sys.baseprefix != sys.prefix.  This did not fail previously

Also, I saw another test failure when building and running with a test 
framework environment that included a relative link.  It appeared that 
_NSGetExecutablePath in pythonw.c returned an unnormalized path:
>>> sys.executable
'/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/./root/bin/python3.3'
which caused a test_venv failure.  I probably won't have time to look at this 
again for a few days.

----------
Added file: http://bugs.python.org/file26373/venv-symlinks-v4.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15307>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to