Message144244
Hello everyone,
I have found the reason for the problem.
From the manual http://docs.python.org/py3k/c-api/init.html#Py_SetPath ,
we can see that:
After we call Py_SetPath,both sys.prefix and sys.exec_prefix will be empty.
However, sys.prefix will be used in the sysconfig.py to generate the makefile' s name, and the empty sys.prefix will cause the wrong path: lib/python3.2/config-3.2m/Makefile
sysconfig.py imported by site.py, and site.py used in the Py_InitializeEx.
So ... |
|
Date |
User |
Action |
Args |
2011-09-18 14:58:32 | dbzhang800 | set | recipients:
+ dbzhang800, barry, ncoghlan, pitrou, vstinner, tarek, srid, palm.kevin |
2011-09-18 14:58:32 | dbzhang800 | set | messageid: <1316357912.44.0.729526450771.issue11320@psf.upfronthosting.co.za> |
2011-09-18 14:58:31 | dbzhang800 | link | issue11320 messages |
2011-09-18 14:58:31 | dbzhang800 | create | |
|