Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
a95cd91d
Commit
a95cd91d
authored
Sep 09, 2017
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assign dists just once
parent
7e173ffb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
pkg_resources/__init__.py
pkg_resources/__init__.py
+12
-12
No files found.
pkg_resources/__init__.py
View file @
a95cd91d
...
@@ -2049,16 +2049,16 @@ def find_on_path(importer, path_item, only=False):
...
@@ -2049,16 +2049,16 @@ def find_on_path(importer, path_item, only=False):
for entry in path_item_entries:
for entry in path_item_entries:
lower = entry.lower()
lower = entry.lower()
fullpath = os.path.join(path_item, entry)
fullpath = os.path.join(path_item, entry)
if lower.endswith('.egg-info') or lower.endswith('.dist-info'):
dists = (
dist
s = dist
ributions_from_metadata(fullpath)
distributions_from_metadata(fullpath)
for dist in dists:
if lower.endswith('.egg-info')
yield dist
or lower.endswith('.dist-info') else
elif not only and _is_egg_path(entry):
find_distributions(fullpath)
dists = find_distributions(fullpath)
if not only and _is_egg_path(entry) else
for dist in dists:
resolve_egg_link(fullpath)
yield dist
if not only and lower.endswith('.egg-link') else
elif not only and lower.endswith('.egg-link'):
()
dists = resolve_egg_link(fullpath
)
)
for dist in dists:
for dist in dists:
yield dist
yield dist
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment