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
68e1aae3
Unverified
Commit
68e1aae3
authored
Apr 14, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dependencies being installed even if not necessary for current system
parent
617a98c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
CHANGELOG.md
+1
-0
poetry/installation/installer.py
+10
-0
No files found.
CHANGELOG.md
View file @
68e1aae3
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
-
Fixed
`add`
command picking up prereleases by default.
-
Fixed
`add`
command picking up prereleases by default.
-
Fixed dependendency resolution on Windows when unpacking distributions.
-
Fixed dependendency resolution on Windows when unpacking distributions.
-
Fixed dependency resolution with post releases.
-
Fixed dependency resolution with post releases.
-
Fixed dependencies being installed even if not necessary for current system.
## [0.8.1] - 2018-04-13
## [0.8.1] - 2018-04-13
...
...
poetry/installation/installer.py
View file @
68e1aae3
...
@@ -455,6 +455,10 @@ class Installer:
...
@@ -455,6 +455,10 @@ class Installer:
op
.
skip
(
'Not needed for the current python version'
)
op
.
skip
(
'Not needed for the current python version'
)
continue
continue
if
not
package
.
python_constraint
.
matches
(
Constraint
(
'='
,
python
)):
op
.
skip
(
'Not needed for the current python version'
)
continue
if
'platform'
in
package
.
requirements
:
if
'platform'
in
package
.
requirements
:
platform_constraint
=
GenericConstraint
.
parse
(
platform_constraint
=
GenericConstraint
.
parse
(
package
.
requirements
[
'platform'
]
package
.
requirements
[
'platform'
]
...
@@ -466,6 +470,12 @@ class Installer:
...
@@ -466,6 +470,12 @@ class Installer:
op
.
skip
(
'Not needed for the current platform'
)
op
.
skip
(
'Not needed for the current platform'
)
continue
continue
if
not
package
.
platform_constraint
.
matches
(
GenericConstraint
(
'='
,
sys
.
platform
)
):
op
.
skip
(
'Not needed for the current platform'
)
continue
if
self
.
_update
:
if
self
.
_update
:
extras
=
{}
extras
=
{}
for
extra
,
deps
in
self
.
_package
.
extras
.
items
():
for
extra
,
deps
in
self
.
_package
.
extras
.
items
():
...
...
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