summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-04-07 18:34:48 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-04-08 19:56:20 +0200
commit0f286858ec1da08effaadb36ec2a2f33614fb8be (patch)
tree20b2beb18c1ca7a24f462262278384ff6488079b /misc
parenteab86dc545b7e9e346cb74a17c1b10df1cd212dc (diff)
downloadclufter-0f286858ec1da08effaadb36ec2a2f33614fb8be.tar.gz
clufter-0f286858ec1da08effaadb36ec2a2f33614fb8be.tar.xz
clufter-0f286858ec1da08effaadb36ec2a2f33614fb8be.zip
general: use python2 (sys.executable), not python (PEP 394)
Hopefully there is no major roadblock making this change unreasonable at this point in time (checked commonly used RHEL, Fedora, Debian/Ubuntu -- the latter also for seamless integration with Travis CI). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/clufter.spec6
-rwxr-xr-xmisc/run-sdist-per-commit2
2 files changed, 4 insertions, 4 deletions
diff --git a/misc/clufter.spec b/misc/clufter.spec
index 974f7eb..31a0f64 100644
--- a/misc/clufter.spec
+++ b/misc/clufter.spec
@@ -1,10 +1,10 @@
# distill-spec-prefix: clufter
%{!?clufter_version: %global clufter_version %{?!infer:0.10.4}%{?infer:%(
- python ../setup.py --version)}}
+ python2 ../setup.py --version)}}
%{!?clufter_name: %global clufter_name %{?!infer:clufter}%{?infer:%(
- python ../setup.py --name)}}
+ python2 ../setup.py --name)}}
%{!?clufter_license: %global clufter_license %{?!infer:GPLv2+}%{?infer:%(
- python ../setup.py --license)}}
+ python2 ../setup.py --license)}}
%{!?clufter_check: %global clufter_check 1}
# special vars wrt. versioning
diff --git a/misc/run-sdist-per-commit b/misc/run-sdist-per-commit
index 5484f7f..16c6f05 100755
--- a/misc/run-sdist-per-commit
+++ b/misc/run-sdist-per-commit
@@ -14,6 +14,6 @@ pushd "$(LC=C \
-e 's|.*filename=\([^-]\+-[^-]\+-\)\(v[^g]\+\)\?g\([0-9a-z]\+\)\.tar\.gz|\1\3|' \
| tr -d '\r\n'
)/__root__"
-python setup.py sdist -d "${OLDPWD}"
+python2 setup.py sdist -d "${OLDPWD}"
popd
echo "New source tarball created: $(ls -1t | head -n1)"