[packages/python] sys.prefix as default install prefix if not /usr
jajcus
jajcus at pld-linux.org
Tue Dec 1 18:49:01 CET 2015
commit 7111e30ba387ac8ac100d083db8f6cd5d7a76e65
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Tue Dec 1 17:50:05 2015 +0100
sys.prefix as default install prefix if not /usr
virtualenv expects sys.prefix change to affect distutils
default installation prefix.
python-install_prefix.patch | 4 ++--
python.spec | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/python.spec b/python.spec
index 98a0f4e..fdd521b 100644
--- a/python.spec
+++ b/python.spec
@@ -44,7 +44,7 @@ Summary(tr.UTF-8): X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
Summary(uk.UTF-8): Мова програмування дуже високого рівня з X-інтерфейсом
Name: python
Version: %{py_ver}.10
-Release: 5.1
+Release: 5.2
Epoch: 1
License: PSF
Group: Development/Languages/Python
diff --git a/python-install_prefix.patch b/python-install_prefix.patch
index 6657f10..69dfa15 100644
--- a/python-install_prefix.patch
+++ b/python-install_prefix.patch
@@ -44,8 +44,8 @@ diff -dur -x '*~' -x '*.orig' Python-2.7.6.orig/Lib/distutils/sysconfig.py Pytho
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
+SYS_PREFIX = os.path.normpath(sys.prefix)
+SYS_EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
-+PREFIX = "/usr/local"
-+EXEC_PREFIX = "/usr/local"
++PREFIX = "/usr/local" if SYS_PREFIX == "/usr" else SYS_PREFIX
++EXEC_PREFIX = "/usr/local" if SYS_EXEC_PREFIX == "/usr" else SYS_EXEC_PREFIX
# Path to the base directory of the project. On Windows the binary may
# live in project/PCBuild9. If we're dealing with an x64 Windows build,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/3bb0fa245609b091ff20c55eab617d16cc260fd3
More information about the pld-cvs-commit
mailing list