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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
2c90a714
Commit
2c90a714
authored
Jul 01, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use error message wording from @jimfulton
parent
b2500b00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
src/zc/buildout/allow-unknown-extras.txt
src/zc/buildout/allow-unknown-extras.txt
+2
-2
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+7
-2
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+1
-1
No files found.
src/zc/buildout/allow-unknown-extras.txt
View file @
2c90a714
...
@@ -40,7 +40,7 @@ Now we can run the buildout and see that it fails:
...
@@ -40,7 +40,7 @@ Now we can run the buildout and see that it fails:
...
...
While:
While:
Installing eggs.
Installing eggs.
Error: Couldn't find the required extra
s. Add 'allow-unknown-extras=true' to the [buildout] configuration if this is acceptable
.
Error: Couldn't find the required extra
..
.
If we flip the option on, the buildout succeeds
If we flip the option on, the buildout succeeds
...
@@ -57,7 +57,7 @@ If we flip the option on, the buildout succeeds
...
@@ -57,7 +57,7 @@ If we flip the option on, the buildout succeeds
... ''')
... ''')
Now we can run the buildout and
make sure all attempts to dist.plone.org fails
::
Now we can run the buildout and
only get a warning
::
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Develop: '/sample-buildout/allowdemo'
Develop: '/sample-buildout/allowdemo'
...
...
src/zc/buildout/easy_install.py
View file @
2c90a714
...
@@ -749,8 +749,13 @@ class Installer(object):
...
@@ -749,8 +749,13 @@ class Installer(object):
if
missing_requested
:
if
missing_requested
:
if
not
self
.
_allow_unknown_extras
:
if
not
self
.
_allow_unknown_extras
:
raise
zc
.
buildout
.
UserError
(
raise
zc
.
buildout
.
UserError
(
"Couldn't find the required extras. Add 'allow-unknown-extras=true' "
"Couldn't find the required extra. "
"to the [buildout] configuration if this is acceptable."
"This means the requirement is incorrect. "
"If the requirement is itself from software you "
"requested, then there might be a bug in "
"requested software. You can ignore this by "
"using 'allow-unknown-extras=true', however "
"that may simply cause needed software to be omitted."
)
)
extra_requirements
=
sorted
(
extra_requirements
=
sorted
(
...
...
src/zc/buildout/easy_install.txt
View file @
2c90a714
...
@@ -225,7 +225,7 @@ is an error.
...
@@ -225,7 +225,7 @@ is an error.
... index=link_server+'index/')
... index=link_server+'index/')
Traceback (most recent call last):
Traceback (most recent call last):
...
...
UserError: Couldn't find the required extra
s. Add 'allow-unknown-extras=true' to the [buildout] configuration if this is acceptable
.
UserError: Couldn't find the required extra
..
.
We can pass the ``allow_unknown_extras`` argument to force the
We can pass the ``allow_unknown_extras`` argument to force the
installation to proceed.
installation to proceed.
...
...
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