Skip to content

Commit deaf327

Browse files
Auto-update setup.py
1 parent b77a1b2 commit deaf327

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
SETUP_REQUIRES = [
19-
'zetup >= 0.2.33',
19+
'zetup >= 0.2.34',
2020
]
2121

2222

@@ -27,12 +27,11 @@
2727
except ImportError: # no setuptools
2828
pass
2929
else:
30-
# make sure that setup requirements
31-
# are always correctly resolved and accessible by:
32-
# - pre-processing them one after another
33-
# - recursively resolving their runtime requirements
34-
# - moving any installed eggs to the front of sys.path
35-
# - updating pkg_resources.working_set accordingly
30+
# Make sure that setup requirements are always correctly resolved and
31+
# accessible by:
32+
# - Recursively resolving their runtime requirements
33+
# - Moving any installed eggs to the front of sys.path
34+
# - Updating pkg_resources.working_set accordingly
3635

3736
installer = Distribution().fetch_build_egg
3837

@@ -68,12 +67,13 @@ def resolve(requirements, parent=None):
6867
except (DistributionNotFound, VersionConflict):
6968
dist = installer(req)
7069
sys.path.insert(0, dist.location)
71-
working_set.entries.insert(0, dist.location)
72-
working_set.by_key[dist.key] = dist
70+
working_set.add_entry(dist.location)
7371
extras = re.match(r'[^#\[]*\[([^#\]]*)\]', req)
7472
if extras:
7573
extras = list(map(str.strip, extras.group(1).split(',')))
76-
resolve(map(str, dist.requires(extras=extras or ())), qualreq)
74+
resolve((str(req).split(';')[0]
75+
for req in dist.requires(extras=extras or ())),
76+
qualreq)
7777

7878
resolve(SETUP_REQUIRES)
7979
zfg = __import__('zetup').Zetup()

0 commit comments

Comments
 (0)