diff options
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1150,9 +1150,9 @@ done \ #------------------------------------------------------------------------------ # Useful python macros for determining python version and paths # -%python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") -%python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") -%python_version %(%{__python} -c "import sys; print sys.version[:3]") +%python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())") +%python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))") +%python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])") #------------------------------------------------------------------------------ # arch macro for all Intel i?86 compatibile processors |