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
c483a118
Unverified
Commit
c483a118
authored
Mar 19, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building wheels with conditional extensions
parent
e398b04c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
CHANGELOG.md
+1
-0
poetry/masonry/builders/wheel.py
+8
-1
No files found.
CHANGELOG.md
View file @
c483a118
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
### Fixed
### Fixed
-
Fixed built wheels not getting information from the virtualenv.
-
Fixed built wheels not getting information from the virtualenv.
-
Fixed building wheel with conditional extensions.
[
0.6.2
]
- 2018-03-19
[
0.6.2
]
- 2018-03-19
...
...
poetry/masonry/builders/wheel.py
View file @
c483a118
...
@@ -109,7 +109,14 @@ class WheelBuilder(Builder):
...
@@ -109,7 +109,14 @@ class WheelBuilder(Builder):
os
.
chdir
(
current_path
)
os
.
chdir
(
current_path
)
build_dir
=
self
.
_path
/
'build'
build_dir
=
self
.
_path
/
'build'
lib
=
list
(
build_dir
.
glob
(
'lib.*'
))[
0
]
lib
=
list
(
build_dir
.
glob
(
'lib.*'
))
if
not
lib
:
# The result of building the extensions
# does not exist, this may due to conditional
# builds, so we assume that it's okay
return
lib
=
lib
[
0
]
for
pkg
in
lib
.
glob
(
'*'
):
for
pkg
in
lib
.
glob
(
'*'
):
shutil
.
rmtree
(
str
(
self
.
_path
/
pkg
.
name
))
shutil
.
rmtree
(
str
(
self
.
_path
/
pkg
.
name
))
shutil
.
copytree
(
str
(
pkg
),
str
(
self
.
_path
/
pkg
.
name
))
shutil
.
copytree
(
str
(
pkg
),
str
(
self
.
_path
/
pkg
.
name
))
...
...
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