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
61e10a5e
Commit
61e10a5e
authored
Sep 29, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
parents
b3b07205
643238eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_ext.py
+3
-4
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/command/build_ext.py
View file @
61e10a5e
...
...
@@ -242,11 +242,10 @@ class build_ext(Command):
# building python standard extensions
self
.
library_dirs
.
append
(
'.'
)
#
for extensions under Linux or Solari
s with a shared Python library,
#
For building extension
s with a shared Python library,
# Python's library directory must be appended to library_dirs
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
)
if
(
sys
.
platform
.
startswith
((
'linux'
,
'gnu'
,
'sunos'
))
and
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
)):
# See Issues: #1600860, #4366
if
(
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
)):
if
sys
.
executable
.
startswith
(
os
.
path
.
join
(
sys
.
exec_prefix
,
"bin"
)):
# building third party extensions
self
.
library_dirs
.
append
(
sysconfig
.
get_config_var
(
'LIBDIR'
))
...
...
Misc/NEWS
View file @
61e10a5e
...
...
@@ -15,6 +15,9 @@ Core and Builtins
Library
-------
-
Issue
#
4366
:
Fix
building
extensions
on
all
platforms
when
--
enable
-
shared
is
used
.
-
Issue
#
18950
:
Fix
miscellaneous
bugs
in
the
sunau
module
.
Au_read
.
readframes
()
now
updates
current
file
position
and
reads
correct
number
of
frames
from
multichannel
stream
.
Au_write
.
writeframesraw
()
now
...
...
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