Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3500e1

Browse files
Fix for issue #7473.
Without this patch you'll get link errors in some extensions (in particular the _curses_panel) one when you try to build a 3-way universal framework when you previously installed a 2-way universal framework using the python.org installer.
1 parent d010329 commit f3500e1

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ Build
141141

142142
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
143143

144+
- Issue #7473: avoid link errors when building a framework with a different
145+
set of architectures than the one that is currently installed.
146+
144147

145148
What's New in Python 3.2 Alpha 3?
146149
=================================

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,12 @@ def detect_modules(self):
400400
for directory in reversed(options.dirs):
401401
add_dir_to_list(dir_list, directory)
402402

403-
if os.path.normpath(sys.prefix) != '/usr':
403+
if os.path.normpath(sys.prefix) != '/usr' \
404+
and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
405+
# OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
406+
# (PYTHONFRAMEWORK is set) to avoid # linking problems when
407+
# building a framework with different architectures than
408+
# the one that is currently installed (issue #7473)
404409
add_dir_to_list(self.compiler.library_dirs,
405410
sysconfig.get_config_var("LIBDIR"))
406411
add_dir_to_list(self.compiler.include_dirs,

0 commit comments

Comments
 (0)