summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-11 06:52:51 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-11 09:49:03 +0200
commit70ab8389753fa428ffd8c58f4d4f0f101227829c (patch)
treebf059c750b0b529c209956e19ff14b186fa57f73 /dev-python/pypy/files
parentdev-python/pypy3-exe-bin: Bump to 7.3.1 (diff)
downloadgentoo-70ab8389753fa428ffd8c58f4d4f0f101227829c.tar.gz
gentoo-70ab8389753fa428ffd8c58f4d4f0f101227829c.tar.bz2
gentoo-70ab8389753fa428ffd8c58f4d4f0f101227829c.zip
dev-python/pypy: Bump to 7.3.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypy/files')
-rw-r--r--dev-python/pypy/files/7.3.1-gentoo-path.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/pypy/files/7.3.1-gentoo-path.patch b/dev-python/pypy/files/7.3.1-gentoo-path.patch
new file mode 100644
index 000000000000..dd2c635055dd
--- /dev/null
+++ b/dev-python/pypy/files/7.3.1-gentoo-path.patch
@@ -0,0 +1,42 @@
+From 6d439c6718625bb7dce32b0afdc6a3d5168a21e5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 11 Apr 2020 07:01:27 +0200
+Subject: [PATCH] Support Gentoo install scheme
+
+---
+ lib-python/2.7/distutils/command/install.py | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/lib-python/2.7/distutils/command/install.py b/lib-python/2.7/distutils/command/install.py
+index 6fe62be..a4e9f0d 100644
+--- a/lib-python/2.7/distutils/command/install.py
++++ b/lib-python/2.7/distutils/command/install.py
+@@ -97,6 +97,13 @@ INSTALL_SCHEMES = {
+ 'scripts': '$base/Scripts',
+ 'data' : '$base',
+ },
++ 'gentoo': {
++ 'purelib': '$base/site-packages',
++ 'platlib': '$base/site-packages',
++ 'headers': '$base/include',
++ 'scripts': '@EPREFIX@/usr/bin',
++ 'data' : '@EPREFIX@/usr',
++ },
+ }
+
+ # The keys to an installation scheme; if any new types of files are to be
+@@ -483,7 +490,10 @@ class install (Command):
+ # it's the caller's problem if they supply a bad name!
+ if (hasattr(sys, 'pypy_version_info') and
+ not name.endswith(('_user', '_home'))):
+- if os.name == 'nt':
++ if self.install_base == os.path.normpath('@EPREFIX@/usr/lib/pypy2.7'):
++ # override paths for system-wide install
++ name = 'gentoo'
++ elif os.name == 'nt':
+ name = 'pypy_nt'
+ else:
+ name = 'pypy'
+--
+2.26.0
+