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.

Author dbzhang800
Recipients barry, dbzhang800, ncoghlan, palm.kevin, pitrou, srid, tarek, vstinner
Date 2011-09-18.14:58:31
SpamBayes Score 0.00015348243
Marked as misclassified No
Message-id <1316357912.44.0.729526450771.issue11320@psf.upfronthosting.co.za>
In-reply-to
Content
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 ...
History
Date User Action Args
2011-09-18 14:58:32dbzhang800setrecipients: + dbzhang800, barry, ncoghlan, pitrou, vstinner, tarek, srid, palm.kevin
2011-09-18 14:58:32dbzhang800setmessageid: <1316357912.44.0.729526450771.issue11320@psf.upfronthosting.co.za>
2011-09-18 14:58:31dbzhang800linkissue11320 messages
2011-09-18 14:58:31dbzhang800create