summaryrefslogtreecommitdiff
path: root/lang/pypy/files
diff options
context:
space:
mode:
authorMarcus von Appen <mva@FreeBSD.org>2012-07-17 19:08:21 +0000
committerMarcus von Appen <mva@FreeBSD.org>2012-07-17 19:08:21 +0000
commit70b1768d9c6ca4a1a0b613a32c999795783f24bc (patch)
tree7865dbb2e3ba358957ea009c20121cd4e08b1a36 /lang/pypy/files
parent- Update to 2.1.2 (diff)
- Fix site-packages path
Discussed with: David Naylor <naylor.b.david@gmail.com> Approved by: David Naylor <naylor.b.david@gmail.com> Obtained from: https://github.com/DragonSA/pypy/tree/fix-1.9-2
Notes
Notes: svn path=/head/; revision=301025
Diffstat (limited to 'lang/pypy/files')
-rw-r--r--lang/pypy/files/patch-lib__pypy1.9__distutils__command__install.py33
-rw-r--r--lang/pypy/files/patch-lib__pypy1.9__distutils__sysconfig_pypy.py20
-rw-r--r--lang/pypy/files/patch-lib__pypy1.9__sysconfig.py40
3 files changed, 93 insertions, 0 deletions
diff --git a/lang/pypy/files/patch-lib__pypy1.9__distutils__command__install.py b/lang/pypy/files/patch-lib__pypy1.9__distutils__command__install.py
new file mode 100644
index 000000000000..9738bcfc4274
--- /dev/null
+++ b/lang/pypy/files/patch-lib__pypy1.9__distutils__command__install.py
@@ -0,0 +1,33 @@
+--- lib/pypy1.9/distutils/command/install.py.orig 2012-07-15 10:10:18.000000000 +0200
++++ lib/pypy1.9/distutils/command/install.py 2012-07-15 10:13:15.000000000 +0200
+@@ -84,9 +84,9 @@
+ 'data' : '$userbase',
+ },
+ 'pypy': {
+- 'purelib': '$base/site-packages',
+- 'platlib': '$base/site-packages',
+- 'headers': '$base/include',
++ 'purelib': '$base/lib/pypy$pypy_version_short/site-packages',
++ 'platlib': '$platbase/lib/pypy$pypy_version_short/site-packages',
++ 'headers': '$base/include/pypy$pypy_version_short/$dist_name',
+ 'scripts': '$base/bin',
+ 'data' : '$base',
+ },
+@@ -304,6 +304,7 @@
+ # about needing recursive variable expansion (shudder).
+
+ py_version = (string.split(sys.version))[0]
++ pypy_version = sys.version[-6:-3]
+ (prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix')
+ self.config_vars = {'dist_name': self.distribution.get_name(),
+ 'dist_version': self.distribution.get_version(),
+@@ -311,6 +312,9 @@
+ 'py_version': py_version,
+ 'py_version_short': py_version[0:3],
+ 'py_version_nodot': py_version[0] + py_version[2],
++ 'pypy_version': pypy_version,
++ 'pypy_version_short': pypy_version[0:3],
++ 'pypy_version_nodot': pypy_version[0] + pypy_version[2],
+ 'sys_prefix': prefix,
+ 'prefix': prefix,
+ 'sys_exec_prefix': exec_prefix,
diff --git a/lang/pypy/files/patch-lib__pypy1.9__distutils__sysconfig_pypy.py b/lang/pypy/files/patch-lib__pypy1.9__distutils__sysconfig_pypy.py
new file mode 100644
index 000000000000..dab7293ca7de
--- /dev/null
+++ b/lang/pypy/files/patch-lib__pypy1.9__distutils__sysconfig_pypy.py
@@ -0,0 +1,20 @@
+--- lib/pypy1.9/distutils/sysconfig_pypy.py.orig 2012-07-13 22:52:04.000000000 +0200
++++ lib/pypy1.9/distutils/sysconfig_pypy.py 2012-07-13 22:58:35.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[-6:-3])
+
+ def get_python_version():
+ """Return a string containing the major and minor Python version,
+@@ -44,7 +44,7 @@
+ "calls to get_python_lib(standard_lib=1) cannot succeed")
+ if prefix is None:
+ prefix = PREFIX
+- return os.path.join(prefix, 'site-packages')
++ return os.path.join(prefix, 'lib', 'pypy' + sys.version[-6:-3], 'site-packages')
+
+
+ _config_vars = None
diff --git a/lang/pypy/files/patch-lib__pypy1.9__sysconfig.py b/lang/pypy/files/patch-lib__pypy1.9__sysconfig.py
new file mode 100644
index 000000000000..0de71f578487
--- /dev/null
+++ b/lang/pypy/files/patch-lib__pypy1.9__sysconfig.py
@@ -0,0 +1,40 @@
+--- lib/pypy1.9/sysconfig.py.orig 2012-07-15 09:57:14.000000000 +0200
++++ lib/pypy1.9/sysconfig.py 2012-07-15 10:03:25.000000000 +0200
+@@ -27,12 +27,12 @@
+ 'data' : '{base}',
+ },
+ 'pypy': {
+- 'stdlib': '{base}/lib-python',
+- 'platstdlib': '{base}/lib-python',
+- 'purelib': '{base}/lib-python',
+- 'platlib': '{base}/lib-python',
+- 'include': '{base}/include',
+- 'platinclude': '{base}/include',
++ 'stdlib': '{base}/lib/pypy{pypy_version_short}',
++ 'platstdlib': '{platbase}/lib/pypy{pypy_version_short}',
++ 'purelib': '{base}/lib/pypy{pypy_version_short}',
++ 'platlib': '{platbase}/lib/pypy{pypy_version_short}',
++ 'include': '{base}/include{pypy_version_short}',
++ 'platinclude': '{platbase}/include/pypy{pypy_version_short}',
+ 'scripts': '{base}/bin',
+ 'data' : '{base}',
+ },
+@@ -98,6 +98,8 @@
+ 'scripts', 'data')
+ _PY_VERSION = sys.version.split()[0]
+ _PY_VERSION_SHORT = sys.version[:3]
++_PYPY_VERSION = sys.version[-6:-1]
++_PYPY_VERSION_SHORT = sys.version[-6:-3]
+ _PY_VERSION_SHORT_NO_DOT = _PY_VERSION[0] + _PY_VERSION[2]
+ _PREFIX = os.path.normpath(sys.prefix)
+ _EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
+@@ -304,6 +306,9 @@
+ _CONFIG_VARS['py_version'] = _PY_VERSION
+ _CONFIG_VARS['py_version_short'] = _PY_VERSION_SHORT
+ _CONFIG_VARS['py_version_nodot'] = _PY_VERSION[0] + _PY_VERSION[2]
++ _CONFIG_VARS['py_version'] = _PYPY_VERSION
++ _CONFIG_VARS['pypy_version_short'] = _PYPY_VERSION_SHORT
++ _CONFIG_VARS['pypy_version_nodot'] = _PYPY_VERSION[0] + _PYPY_VERSION[2]
+ _CONFIG_VARS['base'] = _PREFIX
+ _CONFIG_VARS['platbase'] = _EXEC_PREFIX
+ _CONFIG_VARS['projectbase'] = _PROJECT_BASE