You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7 #68602
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ned-deily'closed_at=<Date2018-04-15.20:30:13.057>created_at=<Date2015-06-08.21:44:34.167>labels= ['OS-mac', 'build']
title='MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7'updated_at=<Date2018-04-15.20:30:13.055>user='https://github.com/debohman'
Thanks for your suggested patch and my apologies for not replying sooner. For Python 2.7.15, we have done some housecleaning of old macOS support issues and, as part of ee8e4b6 for bpo-32726, I have backported the deployment target setting behavior from 3.x, i.e. the deployment target on current systems is now set to the build system's OS level unless overridden by MACOSX_DEPLOYMENT_TARGET= on the configure command or as an environment variable. So the previous behavior can be forced by:
./configure MACOSX_DEPLOYMENT_TARGET=10.4
As you noted, using a proper value for the deployment target allows things like using the system libedit readline support and standard library support for more recent system calls.
changed the title [-]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure[/-][+]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7[/+]on Apr 15, 2018
Activity
debohman commentedon Jun 8, 2015
MACOSX_DEPLOYMENT_TARGET is not set correctly when building the 2.7.10 sources. This causes readline to not be included in the build.
This appears to already be fixed in 3.4.3. I picked up the change to configure.ac from 3.4.3 and it resolved the problem.
I am building on 10.9.5. In my case MACOSX_DEPLOYMENT_TARGET was chosen as 10.4.
The configuration options I am using are:
./configure --enable-shared
Attaching diffs.
ned-deily commentedon Apr 14, 2018
New changeset ee8e4b6 by Ned Deily in branch '2.7':
[2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469)
ee8e4b6
ned-deily commentedon Apr 15, 2018
Thanks for your suggested patch and my apologies for not replying sooner. For Python 2.7.15, we have done some housecleaning of old macOS support issues and, as part of ee8e4b6 for bpo-32726, I have backported the deployment target setting behavior from 3.x, i.e. the deployment target on current systems is now set to the build system's OS level unless overridden by MACOSX_DEPLOYMENT_TARGET= on the configure command or as an environment variable. So the previous behavior can be forced by:
./configure MACOSX_DEPLOYMENT_TARGET=10.4
As you noted, using a proper value for the deployment target allows things like using the system libedit readline support and standard library support for more recent system calls.
[-]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure[/-][+]MACOSX_DEPLOYMENT_TARGET set incorrectly by configure in Python 2.7[/+]