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
80a2ff9e
Commit
80a2ff9e
authored
Jul 20, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add safeguard against improper installs when using a clean repository checkout. Fixes #659.
parent
31913cac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
CHANGES.rst
CHANGES.rst
+6
-0
setup.py
setup.py
+5
-0
No files found.
CHANGES.rst
View file @
80a2ff9e
...
...
@@ -2,6 +2,12 @@
CHANGES
=======
v24
.1.0
-------
*
#
659
:
``
setup
.
py
``
now
will
fail
fast
and
with
a
helpful
error
message
when
the
necessary
metadata
is
missing
.
v24
.0.3
-------
...
...
setup.py
View file @
80a2ff9e
...
...
@@ -11,6 +11,11 @@ import textwrap
# Allow to run setup.py from another directory.
os
.
chdir
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
# Prevent improper installs without necessary metadata. See #659
if
not
os
.
path
.
exists
(
'setuptools.egg-info'
):
msg
=
"Cannot build setuptools without metadata. Run bootstrap.py"
raise
RuntimeError
(
msg
)
src_root
=
None
from
distutils.util
import
convert_path
...
...
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