ports/lang/pypy/files/patch-lib__pypyX.Y__distutils__sysconfig_pypy.py
David Naylor bba9c27d60 Update lang/pypy to 2.0.b1.
The internals of the port have been substantially reworked:
 * All predefined instances can be selected via options [1]
 * Optionally use options, if user does not overwrite instance list
 * Make translation with pypy an option, if it is available.
 * Make memory checking more refined [2]
 * Add a Wiki page details lang/pypy
 * Fix the test target
 * Refactor build target (easier to review, edit)
 * Rename patches to prevent churn

[1] Although two are broken upstream and one possibly discontinued
[2] My memory limits appear to be too conservative.  Set PYPY_IGNORE_MEM for now

Reviewed by:	Kuro <poyopoyo@puripuri.plala.or.jp>, rm@
Approved by:	bdrewery (mentor)
2013-03-23 16:01:56 +00:00

22 lines
902 B
Python

--- lib/pypy2.0/distutils/sysconfig_pypy.py.orig 2012-11-22 14:52:20.000000000 +0200
+++ lib/pypy2.0/distutils/sysconfig_pypy.py 2012-11-27 17:59:44.000000000 +0200
@@ -15,7 +15,7 @@
def get_python_inc(plat_specific=0, prefix=None):
from os.path import join as j
- return j(sys.prefix, 'include')
+ return j(sys.prefix, 'include', 'pypy' + sys.version.rsplit(' ', 1)[-1][:3])
def get_python_version():
"""Return a string containing the major and minor Python version,
@@ -42,8 +42,8 @@
if prefix is None:
prefix = PREFIX
if standard_lib:
- return os.path.join(prefix, "lib-python", get_python_version())
- return os.path.join(prefix, 'site-packages')
+ return os.path.join(prefix, 'lib', 'pypy' + sys.version[-6:-3])
+ return os.path.join(prefix, 'lib', 'pypy' + sys.version.rsplit(' ', 1)[-1][:3], 'site-packages')
_config_vars = None