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
e82ec7dd
Unverified
Commit
e82ec7dd
authored
Oct 22, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix installation of Poetry git dependencies with a build system
parent
62fc038d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
CHANGELOG.md
+7
-0
poetry/installation/pip_installer.py
+6
-2
No files found.
CHANGELOG.md
View file @
e82ec7dd
# Change Log
## [Unreleased]
### Fixed
-
Fixed installation of Poetry git dependencies with a build system.
## [0.12.4] - 2018-10-21
### Fixed
...
...
poetry/installation/pip_installer.py
View file @
e82ec7dd
...
...
@@ -143,7 +143,7 @@ class PipInstaller(BaseInstaller):
return
name
def
install_directory
(
self
,
package
,
update
=
False
):
def
install_directory
(
self
,
package
):
from
poetry.io
import
NullIO
from
poetry.masonry.builder
import
SdistBuilder
from
poetry.poetry
import
Poetry
...
...
@@ -161,12 +161,16 @@ class PipInstaller(BaseInstaller):
pyproject
=
TomlFile
(
os
.
path
.
join
(
req
,
"pyproject.toml"
))
has_poetry
=
False
has_build_system
=
False
if
pyproject
.
exists
():
pyproject_content
=
pyproject
.
read
()
has_poetry
=
(
"tool"
in
pyproject_content
and
"poetry"
in
pyproject_content
[
"tool"
]
)
has_build_system
=
"build-system"
in
pyproject_content
# Even if there is a build system specified
# pip as of right now does not support it fully
# TODO: Check for pip version when proper PEP-517 support lands
# has_build_system = ("build-system" in pyproject_content)
setup
=
os
.
path
.
join
(
req
,
"setup.py"
)
has_setup
=
os
.
path
.
exists
(
setup
)
...
...
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