Use virtualenv python for building scrypt rpm
authorRyan Kelly <rfkelly@mozilla.com>
Wed, 16 Jul 2014 17:38:56 +1000
changeset 262 4f458751c2de71b5d431cdff2a0e65bca2c3e61c
parent 260 905f0b7fe311119298e970f20c1babcba87544b3
child 263 04d59cc6d5d347ae7f5e7bca2be9ed50c677cc56
child 264 db7e0528263ef69032285dc202791bb196f8c11b
push id175
push userrkelly@mozilla.com
push dateWed, 16 Jul 2014 08:27:57 +0000
Use virtualenv python for building scrypt rpm
Makefile
--- a/Makefile
+++ b/Makefile
@@ -101,17 +101,17 @@ lint:
 	- $(PYLINT) -f parseable --rcfile=pylintrc $(PKGS) > pylint.txt
 
 build_rpms:
 	rm -rf rpms
 	mkdir -p ${BUILD_TMP}
 	$(BUILDRPMS) -c $(RPM_CHANNEL) $(PYPIOPTIONS) $(DEPS)
 	# py-scrypt doesn't play nicely with pypi2rpm.
 	cd ${BUILD_TMP}; tar -xzvf $(CURDIR)/upstream-deps/py-scrypt-0.6.0.tar.gz
-	cd ${BUILD_TMP}; python setup.py  --command-packages=pypi2rpm.command bdist_rpm2 --binary-only --name=python26-scrypt --dist-dir=$(CURDIR)/rpms
+	cd ${BUILD_TMP}; ./bin/python setup.py  --command-packages=pypi2rpm.command bdist_rpm2 --binary-only --name=python26-scrypt --dist-dir=$(CURDIR)/rpms
 
 mach: build build_rpms
 	mach clean
 	mach yum install python26 python26-setuptools
 	cd rpms; wget http://mrepo.mozilla.org/mrepo/5-x86_64/RPMS.mozilla-services/gunicorn-0.11.2-1moz.x86_64.rpm
 	cd rpms; wget http://mrepo.mozilla.org/mrepo/5-x86_64/RPMS.mozilla/nginx-0.7.65-4.x86_64.rpm
 	mach yum install rpms/*
 	mach chroot python2.6 -m keyexchange.run