[pypy-svn] pypy fast-forward: Distutils tests need this "sysconfig.project_base"

amauryfa commits-noreply at bitbucket.org
Sun Jan 9 21:17:29 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40540:f0dcdd790a87
Date: 2011-01-09 21:16 +0100
http://bitbucket.org/pypy/pypy/changeset/f0dcdd790a87/

Log:	Distutils tests need this "sysconfig.project_base" CPython has more
	code to define it for Windows platforms, it's not needed on PyPy
	which has the same build system on all platforms (no PCBuild
	directory...)

diff --git a/lib-python/modified-2.7.0/distutils/sysconfig_pypy.py b/lib-python/modified-2.7.0/distutils/sysconfig_pypy.py
--- a/lib-python/modified-2.7.0/distutils/sysconfig_pypy.py
+++ b/lib-python/modified-2.7.0/distutils/sysconfig_pypy.py
@@ -9,6 +9,7 @@
 
 
 PREFIX = os.path.normpath(sys.prefix)
+project_base = os.path.dirname(os.path.abspath(sys.executable))
 python_build = False
 
 


More information about the Pypy-commit mailing list