File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def finalize_options (self):
186
186
# for extensions under Cygwin and AtheOS Python's library directory must be
187
187
# appended to library_dirs
188
188
if sys .platform [:6 ] == 'cygwin' or sys .platform [:6 ] == 'atheos' :
189
- if string . find ( sys .executable , sys .exec_prefix ) != - 1 :
189
+ if sys .executable . startswith ( os . path . join ( sys .exec_prefix , "bin" )) :
190
190
# building third party extensions
191
191
self .library_dirs .append (os .path .join (sys .prefix , "lib" ,
192
192
"python" + get_python_version (),
@@ -199,7 +199,7 @@ def finalize_options (self):
199
199
# Python's library directory must be appended to library_dirs
200
200
if (sys .platform .startswith ('linux' ) or sys .platform .startswith ('gnu' )) \
201
201
and sysconfig .get_config_var ('Py_ENABLE_SHARED' ):
202
- if string . find ( sys .executable , sys .exec_prefix ) != - 1 :
202
+ if sys .executable . startswith ( os . path . join ( sys .exec_prefix , "bin" )) :
203
203
# building third party extensions
204
204
self .library_dirs .append (sysconfig .get_config_var ('LIBDIR' ))
205
205
else :
Original file line number Diff line number Diff line change @@ -646,6 +646,9 @@ Tools/Demos
646
646
Build
647
647
-----
648
648
649
+ - Patch #1569798: fix a bug in distutils when building Python from a
650
+ directory within sys.exec_prefix.
651
+
649
652
- Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
650
653
651
654
- Disable _XOPEN_SOURCE on NetBSD 1.x.
You can’t perform that action at this time.
0 commit comments