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
4835f01c
Commit
4835f01c
authored
Feb 14, 2020
by
con-f-use
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use finalize_distribution_options entrypoint order
fixes #1993
parent
0559f17d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setuptools/dist.py
setuptools/dist.py
+3
-3
No files found.
setuptools/dist.py
View file @
4835f01c
...
@@ -731,13 +731,13 @@ class Distribution(_Distribution):
...
@@ -731,13 +731,13 @@ class Distribution(_Distribution):
to influence the order of execution. Smaller numbers
to influence the order of execution. Smaller numbers
go first and the default is 0.
go first and the default is 0.
"""
"""
hook_key
=
'setuptools.finalize_distribution_options'
group
=
'setuptools.finalize_distribution_options'
def
by_order
(
hook
):
def
by_order
(
hook
):
return
getattr
(
hook
,
'order'
,
0
)
return
getattr
(
hook
,
'order'
,
0
)
eps
=
pkg_resources
.
iter_entry_points
(
hook_key
)
eps
=
map
(
lambda
e
:
e
.
load
(),
pkg_resources
.
iter_entry_points
(
group
)
)
for
ep
in
sorted
(
eps
,
key
=
by_order
):
for
ep
in
sorted
(
eps
,
key
=
by_order
):
ep
.
load
()
(
self
)
ep
(
self
)
def
_finalize_setup_keywords
(
self
):
def
_finalize_setup_keywords
(
self
):
for
ep
in
pkg_resources
.
iter_entry_points
(
'distutils.setup_keywords'
):
for
ep
in
pkg_resources
.
iter_entry_points
(
'distutils.setup_keywords'
):
...
...
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