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
bf6e05c7
Commit
bf6e05c7
authored
Sep 09, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unecessary lines for clarity and added a the same test than in trunk for the inplace
parent
8137c6cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
command/build_ext.py
command/build_ext.py
+0
-3
tests/test_build_ext.py
tests/test_build_ext.py
+13
-0
No files found.
command/build_ext.py
View file @
bf6e05c7
...
...
@@ -642,9 +642,6 @@ class build_ext (Command):
# the inplace option requires to find the package directory
# using the build_py command for that
package
=
'.'
.
join
(
modpath
[
0
:
-
1
])
modpath
=
fullname
.
split
(
'.'
)
package
=
'.'
.
join
(
modpath
[
0
:
-
1
])
base
=
modpath
[
-
1
]
build_py
=
self
.
get_finalized_command
(
'build_py'
)
package_dir
=
os
.
path
.
abspath
(
build_py
.
get_package_dir
(
package
))
...
...
tests/test_build_ext.py
View file @
bf6e05c7
...
...
@@ -329,6 +329,19 @@ class BuildExtTestCase(support.TempdirManager,
wanted
=
os
.
path
.
join
(
curdir
,
'twisted'
,
'runner'
,
'portmap'
+
ext
)
self
.
assertEquals
(
wanted
,
path
)
def
test_build_ext_inplace
(
self
):
etree_c
=
os
.
path
.
join
(
self
.
tmp_dir
,
'lxml.etree.c'
)
etree_ext
=
Extension
(
'lxml.etree'
,
[
etree_c
])
dist
=
Distribution
({
'name'
:
'lxml'
,
'ext_modules'
:
[
etree_ext
]})
cmd
=
build_ext
(
dist
)
cmd
.
inplace
=
1
cmd
.
distribution
.
package_dir
=
{
''
:
'src'
}
cmd
.
distribution
.
packages
=
[
'lxml'
,
'lxml.html'
]
curdir
=
os
.
getcwd
()
wanted
=
os
.
path
.
join
(
curdir
,
'src'
,
'lxml'
,
'etree.so'
)
path
=
cmd
.
get_ext_fullpath
(
'lxml.etree'
)
self
.
assertEquals
(
wanted
,
path
)
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