diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
commit | 6d8f386e24be6410152856774b647e1d46834441 (patch) | |
tree | 75c1eb594b20552710d8be8b642f161769e94245 /debian | |
parent | 889cf65e79d0c8b891eca5ea4f4b3051f1af9f54 (diff) |
sepc: switch to python3 packaging for rpm
and adjust the smoketest accodringly
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/tests/smoke-rpm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/debian/tests/smoke-rpm b/debian/tests/smoke-rpm index 75b47985..de0a62ff 100755 --- a/debian/tests/smoke-rpm +++ b/debian/tests/smoke-rpm @@ -9,14 +9,15 @@ git config user.name "Doesnot Matter" git add . git commit -m"Smoketest" -a cat <<EOF >> ~/.rpmmacros -%python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib().replace('dist-', 'site-'))") -%python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1).replace('dist-', 'site-'))") +%__python3 /usr/bin/python3 +%python_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib().replace('dist-', 'site-'))") +%python_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1).replace('dist-', 'site-'))") EOF gbp buildpackage-rpm --help # Build an RPM of ourselfes if build-deps are available -if python -c "import setuptools"; then +if python3 -c "import setuptools"; then gbp buildpackage-rpm --git-packaging-dir=packaging/ -bb --nodeps rm -r .git ~/.rpmmacros fi |