Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
a5f542b2
Unverified
Commit
a5f542b2
authored
May 19, 2023
by
Riccardo Albertazzi
Committed by
GitHub
May 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix exception on invalid url dependency for current env (#7953)
parent
277fa607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/poetry/installation/executor.py
+9
-3
No files found.
src/poetry/installation/executor.py
View file @
a5f542b2
...
...
@@ -780,9 +780,15 @@ class Executor:
strict
=
False
,
env
=
self
.
_env
,
)
# 'archive' can at this point never be None. Since we previously downloaded
# an archive, we now should have something cached that we can use here
assert
archive
is
not
None
if
archive
is
None
:
# Since we previously downloaded an archive, we now should have
# something cached that we can use here. The only case in which
# archive is None is if the original archive is not valid for the
# current environment.
raise
RuntimeError
(
f
"Package {link.url} cannot be installed in the current environment"
f
" {self._env.marker_env}"
)
if
archive
.
suffix
!=
".whl"
:
message
=
(
...
...
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