]> git.pld-linux.org Git - packages/python.git/commitdiff
- fixed modules byte compilation, so error messages will be printed
authorwrobell <wrobell@pld-linux.org>
Mon, 4 Jun 2001 05:46:17 +0000 (05:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  with correct module path

Changed files:
    python.spec -> 1.72

python.spec

index 8dd2774395caba1642a94b59aa6f31defde808f9..6172ceac64bfe380e3cf7d0b25a641663f107c24 100644 (file)
@@ -1,6 +1,6 @@
 
-%define python_compile_opt ./python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
-%define python_compile ./python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
+%define python_compile_opt ./python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[2])"
+%define python_compile ./python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[2])"
 
 %define pver 2.1
  
@@ -286,8 +286,8 @@ export LD_LIBRARY_PATH=$(pwd)
 
 install libpython%{pver}.a $RPM_BUILD_ROOT%{_libdir}
 
-%python_compile $RPM_BUILD_ROOT%{_libdir}/python%{pver}
-%python_compile_opt $RPM_BUILD_ROOT%{_libdir}/python%{pver}
+%python_compile $RPM_BUILD_ROOT%{_libdir}/python%{pver} %{_libdir}/python%{pver}
+%python_compile_opt $RPM_BUILD_ROOT%{_libdir}/python%{pver} %{_libdir}/python%{pver}
 
 rm -f $RPM_BUILD_ROOT%{_bindir}/python%{pver}
 ln -sf libpython%{pver}.a $RPM_BUILD_ROOT%{_libdir}/libpython.a
This page took 0.046782 seconds and 4 git commands to generate.