summaryrefslogtreecommitdiff
path: root/pbr
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-06-23 17:35:49 -0400
committerMonty Taylor <mordred@inaugust.com>2013-07-11 16:42:27 -0400
commitfb3ff01ecd97823e76ee0948db2fa3a6d9cf1f8f (patch)
tree0742301bb33f91902acf7bf8aadacd5c9a1c12da /pbr
parentd88c6f803a20205f3b065b4e6684c1ef67506a8f (diff)
downloadpbr-fb3ff01ecd97823e76ee0948db2fa3a6d9cf1f8f.tar.gz
Allow pip installation to be skipped.
Distro packagers don't really need for us to attempt to pip install things for them. They're usually managing that dependency tree in the distro packaging. Add an env var they can set in their spec or rules files to skip any pretense of doing anything with install requirements. Change-Id: Ia6387eab3267fa3c4019c4a9d90e4780319c2397
Diffstat (limited to 'pbr')
-rw-r--r--pbr/packaging.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 3a6fe7d..bbc8d38 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -92,6 +92,8 @@ def _missing_requires(requires):
def _pip_install(links, requires, root=None):
+ if str(os.getenv('SKIP_PIP_INSTALL', '')).lower() in TRUE_VALUES:
+ return
root_cmd = ""
if root:
root_cmd = "--root=%s" % root