Skip to content

Commit 5479c87

Browse files
author
Sam Clements
committed
Build CentOS packages with explict python version
1 parent 44390b6 commit 5479c87

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default:
1616

1717

1818
version=$(shell python setup.py --version)
19-
release=3
19+
release=4
2020

2121
riemann-client: dist/python-riemann-client-${version}-${release}.noarch.rpm
2222

@@ -30,11 +30,8 @@ riemann-client.el5: dist/python26-riemann-client-${version}-${release}.el5.noarc
3030

3131
dist/python26-riemann-client-${version}-${release}.el5.noarch.rpm:
3232
${fpm} --version ${version} --iteration ${release}.el5 \
33+
--python-bin python2.6 \
3334
--python-package-name-prefix python26 \
34-
--no-python-dependencies \
35-
--depends 'python(abi) = 2.6' \
36-
--depends 'python26-argparse >= 1.1' \
37-
--depends 'python26-protobuf >= 2.3.0' \
3835
setup.py
3936

4037
protobuf_version=2.5.0
@@ -53,8 +50,8 @@ riemann-client.el6: dist/python-riemann-client-${version}-${release}.el6.noarch.
5350

5451
dist/python-riemann-client-${version}-${release}.el6.noarch.rpm:
5552
${fpm} --iteration ${release}.el6 --version ${version} \
53+
--python-bin python2.6 \
5654
--no-python-dependencies \
57-
--depends 'python(abi) = 2.6' \
5855
--depends 'python-argparse >= 1.1' \
5956
--depends 'protobuf-python >= 2.3.0' \
6057
setup.py

0 commit comments

Comments
 (0)