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
228f0f96
Unverified
Commit
228f0f96
authored
Aug 31, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an error on Python 3.5+ for git dependencies with recursive symlinks
parent
f4ad371e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG.md
+1
-0
poetry/puzzle/provider.py
+15
-0
poetry/utils/_compat.py
+1
-0
No files found.
CHANGELOG.md
View file @
228f0f96
...
...
@@ -6,6 +6,7 @@
-
Fixed a recursion error with circular dependencies.
-
Fixed the
`config`
command setting incorrect values for paths.
-
Fixed an
`OSError`
on Python >= 3.5 for
`git`
dependencies with recursive symlinks.
## [0.11.4] - 2018-07-30
...
...
poetry/puzzle/provider.py
View file @
228f0f96
import
glob
import
logging
import
os
import
pkginfo
...
...
@@ -25,6 +26,7 @@ from poetry.mixology.term import Term
from
poetry.repositories
import
Pool
from
poetry.utils._compat
import
PY35
from
poetry.utils._compat
import
Path
from
poetry.utils.helpers
import
parse_requires
from
poetry.utils.toml_file
import
TomlFile
...
...
@@ -193,6 +195,19 @@ class Provider:
try
:
venv
.
run
(
"python"
,
"setup.py"
,
"egg_info"
)
# Sometimes pathlib will fail on recursive
# symbolic links, so we need to workaround it
# and use the glob module instead.
# Note that this does not happen with pathlib2
# so it's safe to use it for Python < 3.4.
if
PY35
:
egg_info
=
next
(
Path
(
p
)
for
p
in
glob
.
glob
(
os
.
path
.
join
(
str
(
tmp_dir
),
"**"
,
"*.egg-info"
)
)
)
else
:
egg_info
=
next
(
tmp_dir
.
glob
(
"**/*.egg-info"
))
meta
=
pkginfo
.
UnpackedSDist
(
str
(
egg_info
))
...
...
poetry/utils/_compat.py
View file @
228f0f96
...
...
@@ -17,6 +17,7 @@ except NameError: # Python 3
PY2
=
sys
.
version_info
[
0
]
==
2
PY35
=
sys
.
version_info
>=
(
3
,
5
)
PY36
=
sys
.
version_info
>=
(
3
,
6
)
...
...
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