[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-extras-commits
Subject:    churchyard pushed to python26 (f23). "Fix wrong non-optimized bytecompilation (..more)"
From:       notifications () fedoraproject ! org
Date:       2016-09-30 20:12:52
Message-ID: 20160930201252.5B570605E207 () bastion01 ! phx2 ! fedoraproject ! org
[Download RAW message or body]

From 010d5b7bd544bebded34ce0fdfb75b5b78d9694c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro Hrončok?= <miro@hroncok.cz>
Date: Tue, 13 Sep 2016 18:08:24 +0200
Subject: Fix wrong non-optimized bytecompilation

Credits go to @torsava
---
 python26.spec | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/python26.spec b/python26.spec
index b2a1fa1..d81d481 100644
--- a/python26.spec
+++ b/python26.spec
@@ -1004,7 +1004,6 @@ sed -i "s|^#\! */usr/bin.*$|#\! %{__python}|" \
 sed -i -e '1i#\! %{__python}' %{buildroot}%{demo_dir}/scripts/find-uname.py

 # Do bytecompilation with the newly installed interpreter.
-# This is similar to the script in macros.pybytecompile
 # compile *.pyo
 find %{buildroot} -type f -a -name "*.py" -print0 | \
     LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
@@ -1014,7 +1013,7 @@ find %{buildroot} -type f -a -name "*.py" -print0 | \
 find %{buildroot} -type f -a -name "*.py" -print0 | \
     LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
     PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} \
                %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
-    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} -O -c 'import py_compile, \
sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2], optimize=0) for f \
in sys.argv[1:]]' || : +    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} -c \
'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2]) \
for f in sys.argv[1:]]' || :

 # Make library-files user writable
 # rhbz#1046276
--
cgit v0.12


	http://pkgs.fedoraproject.org/cgit/python26.git/commit/?h3&id0d5b7bd544bebded34ce0fdfb75b5b78d9694c
 _______________________________________________
scm-commits mailing list -- scm-commits@lists.fedoraproject.org
To unsubscribe send an email to scm-commits-leave@lists.fedoraproject.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic