Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 #23556
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
|
I have now signed the CLA |
|
Looks good to me |
|
Thanks for the PR. There is more work to be done, though. With:
making this change in
Are there other users of |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
A nicer fix is to ensure that sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') evaluates to a string. I haven't checked how easy it would be to do this. |
|
@ronaldoussoren the code at https://github.com/python/cpython/blob/3.9/Lib/sysconfig.py#L461 shows it's very deliberate that int-type values are returned as int |
|
Two places I am not 100% sure what to do:
|
|
I have made the requested changes; please review again. Travis is telling me:
but I haven't changed whitespace in this file, and it is not telling me what the issue actually is. |
|
Thanks for making the requested changes! @ned-deily: please review the changes made to this pull request. |
|
Thanks for the changes. Running test_distutils: gives a number of failing test cases, basically due to one of two problems.
I don't think we need to make any changes to |
| @@ -57,7 +57,7 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0): | |||
| _cfg_target = sysconfig.get_config_var( | |||
| 'MACOSX_DEPLOYMENT_TARGET') or '' | |||
| if _cfg_target: | |||
| _cfg_target_split = [int(x) for x in _cfg_target.split('.')] | |||
| _cfg_target_split = [int(x) for x in str(_cfg_target).split('.')] | |||
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @ned-deily: please review the changes made to this pull request. |
|
I think there is one more occurrence to fix at
because |
This pull request provides a fix for https://bugs.python.org/issue42504
https://bugs.python.org/issue42504