Message124560
sysconfig assumes there will be a makefile if the platform is posix, which isn't always true. For example IronPython on Mac OS X with mono.
This leads to a traceback on startup with IronPython 2.7:
$ ipy27
Traceback (most recent call last):
File "/Second/michael/Downloads/IronPython-2.7/Lib/site.py", line 548, in <module>
File "/Second/michael/Downloads/IronPython-2.7/Lib/site.py", line 530, in main
File "/Second/michael/Downloads/IronPython-2.7/Lib/site.py", line 264, in addusersitepackages
File "/Second/michael/Downloads/IronPython-2.7/Lib/site.py", line 239, in getusersitepackages
File "/Second/michael/Downloads/IronPython-2.7/Lib/site.py", line 229, in getuserbase
File "/Second/michael/Downloads/IronPython-2.7/Lib/sysconfig.py", line 518, in get_config_var
File "/Second/michael/Downloads/IronPython-2.7/Lib/sysconfig.py", line 421, in get_config_vars
File "/Second/michael/Downloads/IronPython-2.7/Lib/sysconfig.py", line 275, in _init_posix
IOError: invalid Python installation: unable to open /Volumes/Second Drive/michael/Downloads/IronPython-2.7/lib/python2.7/config/Makefile (Could not find a part of the path "/Volumes/Second Drive/michael/Downloads/IronPython-2.7/lib/python2.7/config/Makefile".)IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
>>> |
|
Date |
User |
Action |
Args |
2010-12-23 17:56:24 | michael.foord | set | recipients:
+ michael.foord, tarek, eric.araujo |
2010-12-23 17:56:24 | michael.foord | set | messageid: <1293126984.08.0.755809334689.issue10764@psf.upfronthosting.co.za> |
2010-12-23 17:56:22 | michael.foord | link | issue10764 messages |
2010-12-23 17:56:22 | michael.foord | create | |
|