Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
46a2dd11
Commit
46a2dd11
authored
Mar 21, 2020
by
Julien Muchembled
Committed by
Xavier Thompson
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not install entry points if there's any missing extra
parent
e3ee3087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+6
-4
No files found.
src/zc/buildout/easy_install.py
View file @
46a2dd11
...
@@ -1139,14 +1139,16 @@ def scripts(reqs, working_set, executable, dest=None,
...
@@ -1139,14 +1139,16 @@ def scripts(reqs, working_set, executable, dest=None,
for
req
in
reqs
:
for
req
in
reqs
:
if
isinstance
(
req
,
str
):
if
isinstance
(
req
,
str
):
req
=
pkg_resources
.
Requirement
.
parse
(
req
)
req
=
pkg_resources
.
Requirement
.
parse
(
req
)
has_extras
=
set
(
req
.
extras
).
issuperset
dist
=
working_set
.
find
(
req
)
dist
=
working_set
.
find
(
req
)
# regular console_scripts entry points
# regular console_scripts entry points
for
name
in
pkg_resources
.
get_entry_map
(
dist
,
'console_scripts'
):
for
name
in
pkg_resources
.
get_entry_map
(
dist
,
'console_scripts'
):
entry_point
=
dist
.
get_entry_info
(
'console_scripts'
,
name
)
entry_point
=
dist
.
get_entry_info
(
'console_scripts'
,
name
)
entry_points
.
append
(
if
has_extras
(
entry_point
.
extras
):
(
name
,
entry_point
.
module_name
,
entry_points
.
append
(
'.'
.
join
(
entry_point
.
attrs
))
(
name
,
entry_point
.
module_name
,
)
'.'
.
join
(
entry_point
.
attrs
))
)
# The metadata on "old-style" distutils scripts is not retained by
# The metadata on "old-style" distutils scripts is not retained by
# distutils/setuptools, except by placing the original scripts in
# distutils/setuptools, except by placing the original scripts in
# /EGG-INFO/scripts/.
# /EGG-INFO/scripts/.
...
...
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