Skip to content

Commit

Permalink
Explicity specify path to python interpreter since we now build packa…
Browse files Browse the repository at this point in the history
…ges under

virtualenv.
  • Loading branch information
Kami committed Jul 1, 2015
1 parent 380ea5a commit 210fa98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion st2client/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SHELL := /bin/bash
PY := /usr/bin/python
PY27 := /usr/local/bin/python2.7
RPM_ROOT=~/rpmbuild
RPM_SOURCES_DIR := $(RPM_ROOT)/SOURCES/
Expand All @@ -9,7 +10,7 @@ COMPONENTS := st2client

.PHONY: rpm
rpm:
python setup.py bdist_rpm
python setup.py bdist_rpm --python=$(PY)
mkdir -p $(RPM_ROOT)/RPMS/noarch
cp dist/$(COMPONENTS)*noarch.rpm $(RPM_ROOT)/RPMS/noarch/$(COMPONENTS)-$(VER)-$(RELEASE).noarch.rpm
mkdir -p $(RPM_ROOT)/SRPMS
Expand Down

0 comments on commit 210fa98

Please sign in to comment.