summaryrefslogtreecommitdiff
path: root/pbr/core.py
diff options
context:
space:
mode:
authorSachi King <nakato@nakato.io>2015-10-29 12:17:56 +0900
committerSachi King <nakato@nakato.io>2015-12-17 10:59:00 +1100
commit7898882fa5316bf85ffd5617340e69df2129e923 (patch)
treed18a8ce16362edda881feca006eca69e677a7729 /pbr/core.py
parent4afcabe646035047804e7a4bf669da2f5b7e7aa9 (diff)
downloadpbr-7898882fa5316bf85ffd5617340e69df2129e923.tar.gz
Handle markers to support sdist on pip < 6
Old versions of pip do not properly evaluate blank envmarkers such as ':python_version>=2.7', so as long as we are not creating a bdist_wheel we evaluate these immediately to support these old installations Change-Id: I94a5f9bccd658a2529a727d99f5a2b79e6b00aa8 Closes-Bug: 1502692
Diffstat (limited to 'pbr/core.py')
-rw-r--r--pbr/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbr/core.py b/pbr/core.py
index 25d6885..f336597 100644
--- a/pbr/core.py
+++ b/pbr/core.py
@@ -106,7 +106,7 @@ def pbr(dist, attr, value):
# Converts the setup.cfg file to setup() arguments
try:
- attrs = util.cfg_to_args(path)
+ attrs = util.cfg_to_args(path, dist.script_args)
except Exception:
e = sys.exc_info()[1]
# NB: This will output to the console if no explicit logging has