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
6d9f15b9
Commit
6d9f15b9
authored
Oct 13, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complementary fix for #7115
parent
c22811e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
command/build_ext.py
command/build_ext.py
+4
-2
tests/test_build_ext.py
tests/test_build_ext.py
+13
-0
No files found.
command/build_ext.py
View file @
6d9f15b9
...
...
@@ -628,8 +628,10 @@ class build_ext (Command):
The file is located in `build_lib` or directly in the package
(inplace option).
"""
if
os
.
sep
in
ext_name
:
ext_name
=
ext_name
.
replace
(
os
.
sep
,
'.'
)
# makes sure the extension name is only using dots
all_dots
=
string
.
maketrans
(
'/'
+
os
.
sep
,
'..'
)
ext_name
=
ext_name
.
translate
(
all_dots
)
fullname
=
self
.
get_ext_fullname
(
ext_name
)
modpath
=
fullname
.
split
(
'.'
)
filename
=
self
.
get_ext_filename
(
ext_name
)
...
...
tests/test_build_ext.py
View file @
6d9f15b9
...
...
@@ -373,6 +373,19 @@ class BuildExtTestCase(support.TempdirManager,
wanted
=
os
.
path
.
join
(
cmd
.
build_lib
,
'UpdateManager'
,
'fdsend'
+
ext
)
self
.
assertEquals
(
ext_path
,
wanted
)
def
test_build_ext_path_cross_platform
(
self
):
if
sys
.
platform
!=
'win32'
:
return
dist
=
Distribution
({
'name'
:
'UpdateManager'
})
cmd
=
build_ext
(
dist
)
cmd
.
ensure_finalized
()
ext
=
sysconfig
.
get_config_var
(
"SO"
)
# this needs to work even under win32
ext_name
=
'UpdateManager/fdsend'
ext_path
=
cmd
.
get_ext_fullpath
(
ext_name
)
wanted
=
os
.
path
.
join
(
cmd
.
build_lib
,
'UpdateManager'
,
'fdsend'
+
ext
)
self
.
assertEquals
(
ext_path
,
wanted
)
def
test_suite
():
if
not
sysconfig
.
python_build
:
if
test_support
.
verbose
:
...
...
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