Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
11d5bb9e
Commit
11d5bb9e
authored
Jun 02, 2016
by
Benjamin Bach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing #190 following proposal by @jaraco
parent
5675cdde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
setuptools/command/build_py.py
setuptools/command/build_py.py
+4
-0
No files found.
setuptools/command/build_py.py
View file @
11d5bb9e
...
@@ -8,6 +8,7 @@ import io
...
@@ -8,6 +8,7 @@ import io
import
distutils.errors
import
distutils.errors
import
itertools
import
itertools
from
setuptools.extern
import
six
from
setuptools.extern.six.moves
import
map
,
filter
,
filterfalse
from
setuptools.extern.six.moves
import
map
,
filter
,
filterfalse
try
:
try
:
...
@@ -66,6 +67,9 @@ class build_py(orig.build_py, Mixin2to3):
...
@@ -66,6 +67,9 @@ class build_py(orig.build_py, Mixin2to3):
return
orig
.
build_py
.
__getattr__
(
self
,
attr
)
return
orig
.
build_py
.
__getattr__
(
self
,
attr
)
def
build_module
(
self
,
module
,
module_file
,
package
):
def
build_module
(
self
,
module
,
module_file
,
package
):
if
six
.
PY2
and
isinstance
(
package
,
six
.
string_types
):
# avoid errors on Python 2 when unicode is passed (#190)
package
=
package
.
split
(
'.'
)
outfile
,
copied
=
orig
.
build_py
.
build_module
(
self
,
module
,
module_file
,
outfile
,
copied
=
orig
.
build_py
.
build_module
(
self
,
module
,
module_file
,
package
)
package
)
if
copied
:
if
copied
:
...
...
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