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
0cb7c312
Commit
0cb7c312
authored
Jan 26, 2001
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an execution layer to be able to customize per-extension
building.
parent
5634233c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
91 deletions
+92
-91
command/build_ext.py
command/build_ext.py
+92
-91
No files found.
command/build_ext.py
View file @
0cb7c312
...
...
@@ -356,13 +356,16 @@ class build_ext (Command):
# get_outputs ()
def
build_extensions
(
self
):
def
build_extensions
(
self
):
# First, sanity-check the 'extensions' list
self
.
check_extensions_list
(
self
.
extensions
)
for
ext
in
self
.
extensions
:
self
.
build_extension
(
ext
)
def
build_extension
(
self
,
ext
):
sources
=
ext
.
sources
if
sources
is
None
or
type
(
sources
)
not
in
(
ListType
,
TupleType
):
raise
DistutilsSetupError
,
\
...
...
@@ -391,7 +394,7 @@ class build_ext (Command):
if
not
(
self
.
force
or
newer_group
(
sources
,
ext_filename
,
'newer'
)):
self
.
announce
(
"skipping '%s' extension (up-to-date)"
%
ext
.
name
)
continue
# 'for' loop over all extensions
return
else
:
self
.
announce
(
"building '%s' extension"
%
ext
.
name
)
...
...
@@ -453,8 +456,6 @@ class build_ext (Command):
debug
=
self
.
debug
,
build_temp
=
self
.
build_temp
)
# build_extensions ()
def
swig_sources
(
self
,
sources
):
...
...
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