shithub: aubio

Download patch

ref: c0c3f33928ea95bdeba685c48c18f0494d10672f
parent: 3aad0b1b1ba6dd4b88b4905e78bc80da83ee23b8
author: Paul Brossier <piem@piem.org>
date: Sat Dec 10 18:05:41 EST 2016

Makefile: factorise pip options

--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
 WAFCMD=python waf
 WAFURL=https://waf.io/waf-1.8.22
 
@@ -12,6 +15,8 @@
 # python/lib/moresetuptools.py also checks for HAVE_AUBIO_DOUBLE
 WAFOPTS += $(shell [ -z $(HAVE_AUBIO_DOUBLE) ] || echo --enable-double )
 
+PIPOPTS += --verbose
+
 DESTDIR:=$(PWD)/build/dist
 PYDESTDIR:=$(PWD)/build/pydist
 
@@ -97,7 +102,7 @@
 
 deps_python:
 	# install or upgrade python requirements
-	pip install --verbose --requirement requirements.txt
+	pip install $(PIPOPTS) --requirement requirements.txt
 
 # use pip or distutils?
 #install_python: install_python_with_pip
@@ -107,7 +112,7 @@
 
 install_python_with_pip:
 	# install package
-	pip install --verbose .
+	pip install $(PIPOPTS) .
 
 uninstall_python_with_pip:
 	# uninstall package
@@ -114,7 +119,7 @@
 	pip uninstall -y -v aubio || make uninstall_python_with_distutils
 
 install_python_with_distutils:
-	./setup.py install $(DISTUTILSOPTS)
+	./setup.py install $(PIPOPTS) $(DISTUTILSOPTS)
 
 uninstall_python_with_distutils:
 	#./setup.py uninstall