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
2e8960b7
Commit
2e8960b7
authored
Jul 10, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #6455 (the test shall use pyd files under win32, rather than so files)
parent
29efe3a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tests/test_build_ext.py
tests/test_build_ext.py
+5
-4
No files found.
tests/test_build_ext.py
View file @
2e8960b7
...
...
@@ -362,6 +362,7 @@ class BuildExtTestCase(support.TempdirManager,
self
.
assertEquals
(
lastdir
,
'bar'
)
def
test_ext_fullpath
(
self
):
ext
=
sysconfig
.
get_config_vars
()[
'SO'
]
# building lxml.etree inplace
#etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c')
#etree_ext = Extension('lxml.etree', [etree_c])
...
...
@@ -372,14 +373,14 @@ class BuildExtTestCase(support.TempdirManager,
cmd
.
distribution
.
package_dir
=
{
''
:
'src'
}
cmd
.
distribution
.
packages
=
[
'lxml'
,
'lxml.html'
]
curdir
=
os
.
getcwd
()
wanted
=
os
.
path
.
join
(
curdir
,
'src'
,
'lxml'
,
'etree
.so'
)
wanted
=
os
.
path
.
join
(
curdir
,
'src'
,
'lxml'
,
'etree
'
+
ext
)
path
=
cmd
.
get_ext_fullpath
(
'lxml.etree'
)
self
.
assertEquals
(
wanted
,
path
)
# building lxml.etree not inplace
cmd
.
inplace
=
0
cmd
.
build_lib
=
os
.
path
.
join
(
curdir
,
'tmpdir'
)
wanted
=
os
.
path
.
join
(
curdir
,
'tmpdir'
,
'lxml'
,
'etree
.so'
)
wanted
=
os
.
path
.
join
(
curdir
,
'tmpdir'
,
'lxml'
,
'etree
'
+
ext
)
path
=
cmd
.
get_ext_fullpath
(
'lxml.etree'
)
self
.
assertEquals
(
wanted
,
path
)
...
...
@@ -389,13 +390,13 @@ class BuildExtTestCase(support.TempdirManager,
cmd
.
distribution
.
packages
=
[
'twisted'
,
'twisted.runner.portmap'
]
path
=
cmd
.
get_ext_fullpath
(
'twisted.runner.portmap'
)
wanted
=
os
.
path
.
join
(
curdir
,
'tmpdir'
,
'twisted'
,
'runner'
,
'portmap
.so'
)
'portmap
'
+
ext
)
self
.
assertEquals
(
wanted
,
path
)
# building twisted.runner.portmap inplace
cmd
.
inplace
=
1
path
=
cmd
.
get_ext_fullpath
(
'twisted.runner.portmap'
)
wanted
=
os
.
path
.
join
(
curdir
,
'twisted'
,
'runner'
,
'portmap
.so'
)
wanted
=
os
.
path
.
join
(
curdir
,
'twisted'
,
'runner'
,
'portmap
'
+
ext
)
self
.
assertEquals
(
wanted
,
path
)
def
test_compiler_deprecation_warning
(
self
):
...
...
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