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
dff17c86
Commit
dff17c86
authored
Aug 13, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_export_symbols() changed, adds now module init function if not given
by the user.
parent
f04ac5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
command/build_ext.py
command/build_ext.py
+4
-8
No files found.
command/build_ext.py
View file @
dff17c86
...
@@ -549,14 +549,10 @@ class build_ext (Command):
...
@@ -549,14 +549,10 @@ class build_ext (Command):
the .pyd file (DLL) must export the module "init" function.
the .pyd file (DLL) must export the module "init" function.
"""
"""
# XXX what if 'export_symbols' defined but it doesn't contain
initfunc_name
=
"init"
+
string
.
split
(
ext
.
name
,
'.'
)[
-
1
]
# "init" + module_name? Should we add it? warn? or just carry
if
initfunc_name
not
in
ext
.
export_symbols
:
# on doing nothing?
ext
.
export_symbols
.
append
(
initfunc_name
)
return
ext
.
export_symbols
if
ext
.
export_symbols
is
None
:
return
[
"init"
+
string
.
split
(
ext
.
name
,
'.'
)[
-
1
]]
else
:
return
ext
.
export_symbols
def
get_libraries
(
self
,
ext
):
def
get_libraries
(
self
,
ext
):
"""Return the list of libraries to link against when building a
"""Return the list of libraries to link against when building a
...
...
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