[packages/rpm-build-macros] py_install: explicitly specify --install-purelib

jajcus jajcus at pld-linux.org
Wed Dec 2 18:30:14 CET 2015


commit 7cb661327b208a3f8865a6c8894de3de444b3467
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Wed Dec 2 18:25:20 2015 +0100

    py_install: explicitly specify --install-purelib
    
    This way our Python does not need to be patched in a way virtualenv
    doesn't like.
    
    Version: 1.713

 rpm-build-macros.spec | 2 +-
 rpm.macros            | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/rpm-build-macros.spec b/rpm-build-macros.spec
index 542ca5f..2e93fdb 100644
--- a/rpm-build-macros.spec
+++ b/rpm-build-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	1.712
+%define		rpm_macros_rev	1.713
 %define		find_lang_rev	1.37
 Summary:	PLD Linux RPM build macros
 Summary(pl.UTF-8):	Makra do budowania pakietów RPM dla Linuksa PLD
diff --git a/rpm.macros b/rpm.macros
index a886f53..d4b761a 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -1127,6 +1127,8 @@ fi \
 				build --build-base=build-2 \
 				install --skip-build \
 				--prefix=%{_prefix} \
+				--install-purelib=%{py_sitescriptdir} \
+				--install-platlib=%{py_sitedir} \
 				--optimize=2 \
 				--root=$RPM_BUILD_ROOT \
 }
@@ -1150,6 +1152,8 @@ fi \
 				build --build-base=build-3 \
 				install --skip-build \
 				--prefix=%{_prefix} \
+				--install-purelib=%{py3_sitescriptdir} \
+				--install-platlib=%{py3_sitedir} \
 				--optimize=2 \
 				--root=$RPM_BUILD_ROOT \
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/7cb661327b208a3f8865a6c8894de3de444b3467



More information about the pld-cvs-commit mailing list