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
620b20a7
Commit
620b20a7
authored
May 28, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v44.1.1'
parents
6bf44e11
df51e629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
CHANGES.rst
CHANGES.rst
+6
-0
setuptools/__init__.py
setuptools/__init__.py
+21
-4
No files found.
CHANGES.rst
View file @
620b20a7
v44
.1.1
-------
*
#
2158
:
Avoid
loading
working
set
during
``
Distribution
.
finalize_options
``
prior
to
invoking
``
_install_setup_requires
``,
broken
since
v42
.0.0
.
v47
.1.0
v47
.1.0
-------
-------
...
...
setuptools/__init__.py
View file @
620b20a7
...
@@ -128,10 +128,27 @@ if PY3:
...
@@ -128,10 +128,27 @@ if PY3:
def
_install_setup_requires
(
attrs
):
def
_install_setup_requires
(
attrs
):
# Note: do not use `setuptools.Distribution` directly, as
# Note: do not use `setuptools.Distribution` directly, as
# our PEP 517 backend patch `distutils.core.Distribution`.
# our PEP 517 backend patch `distutils.core.Distribution`.
dist
=
distutils
.
core
.
Distribution
(
dict
(
class
MinimalDistribution
(
distutils
.
core
.
Distribution
):
(
k
,
v
)
for
k
,
v
in
attrs
.
items
()
"""
if
k
in
(
'dependency_links'
,
'setup_requires'
)
A minimal version of a distribution for supporting the
))
fetch_build_eggs interface.
"""
def
__init__
(
self
,
attrs
):
_incl
=
'dependency_links'
,
'setup_requires'
filtered
=
{
k
:
attrs
[
k
]
for
k
in
set
(
_incl
)
&
set
(
attrs
)
}
distutils
.
core
.
Distribution
.
__init__
(
self
,
filtered
)
def
finalize_options
(
self
):
"""
Disable finalize_options to avoid building the working set.
Ref #2158.
"""
dist
=
MinimalDistribution
(
attrs
)
# Honor setup.cfg's options.
# Honor setup.cfg's options.
dist
.
parse_config_files
(
ignore_option_errors
=
True
)
dist
.
parse_config_files
(
ignore_option_errors
=
True
)
if
dist
.
setup_requires
:
if
dist
.
setup_requires
:
...
...
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