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

List:       fedora-extras-commits
Subject:    churchyard pushed to python26 (f24). "Do the pyc/pyo compilation after seding the sources (..more)"
From:       notifications () fedoraproject ! org
Date:       2016-09-30 20:11:56
Message-ID: 20160930201156.2FB5660D9925 () bastion01 ! phx2 ! fedoraproject ! org
[Download RAW message or body]

From 875789c43adcb28a47ff95df496b1292399ce77d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro Hrončok?= <miro@hroncok.cz>
Date: Tue, 13 Sep 2016 12:40:36 +0200
Subject: Do the pyc/pyo compilation after seding the sources

This dos not fix the mtime issue, but has to be done anyway
---
 python26.spec | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/python26.spec b/python26.spec
index c698a29..b2a1fa1 100644
--- a/python26.spec
+++ b/python26.spec
@@ -968,19 +968,6 @@ LD_LIBRARY_PATH=. ./python -c "import compileall; import sys; \
compileall.compile  LD_LIBRARY_PATH=. ./python -O -c "import compileall; import sys; \
compileall.compile_dir('%{buildroot}%{dir_holding_gdb_py}', \
ddir='%{dir_holding_gdb_py}')"  %endif # with_gdb_hooks

-# 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}" \
-    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]) for f in \
                sys.argv[1:]]' || :
-# compile *.pyc
-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:]]' || :
-
 #
 # Systemtap hooks:
 #
@@ -1016,6 +1003,19 @@ 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}" \
+    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]) for f in sys.argv[1:]]' \
|| : +# compile *.pyc
+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:]]' || : +
 # Make library-files user writable
 # rhbz#1046276
 /usr/bin/chmod 755 %{buildroot}%{dynload_dir}/*.so
--
cgit v0.12


	http://pkgs.fedoraproject.org/cgit/python26.git/commit/?h4&id5789c43adcb28a47ff95df496b1292399ce77d
 _______________________________________________
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