Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b4e479d
Commit
3b4e479d
authored
Jun 11, 2008
by
Amaury Forgeot d'Arc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow-up of PEP 3121:
Correct the exported symbol for extension modules built by distutils
parent
f1ca0b11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_ext.py
+2
-2
No files found.
Lib/distutils/command/build_ext.py
View file @
3b4e479d
...
@@ -646,10 +646,10 @@ class build_ext(Command):
...
@@ -646,10 +646,10 @@ class build_ext(Command):
def
get_export_symbols
(
self
,
ext
):
def
get_export_symbols
(
self
,
ext
):
"""Return the list of symbols that a shared extension has to
"""Return the list of symbols that a shared extension has to
export. This either uses 'ext.export_symbols' or, if it's not
export. This either uses 'ext.export_symbols' or, if it's not
provided, "
init
" + module_name. Only relevant on Windows, where
provided, "
PyInit_
" + module_name. Only relevant on Windows, where
the .pyd file (DLL) must export the module "init" function.
the .pyd file (DLL) must export the module "init" function.
"""
"""
initfunc_name
=
"
init
"
+
ext
.
name
.
split
(
'.'
)[
-
1
]
initfunc_name
=
"
PyInit_
"
+
ext
.
name
.
split
(
'.'
)[
-
1
]
if
initfunc_name
not
in
ext
.
export_symbols
:
if
initfunc_name
not
in
ext
.
export_symbols
:
ext
.
export_symbols
.
append
(
initfunc_name
)
ext
.
export_symbols
.
append
(
initfunc_name
)
return
ext
.
export_symbols
return
ext
.
export_symbols
...
...
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