Skip to content

Conversation

jorjun
Copy link
Contributor

@jorjun jorjun commented Dec 15, 2020

sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')

returns '11.1' in Python 2.7 and 11 in Python 3.9 causing exception: builtins.TypeError: expected string or bytes-like object

@nicolasnoble

Fixes #25082

sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')

returns <str> '11.1' in Python 2.7 and <int> 11 in Python 3.9 causing exception: builtins.TypeError: expected string or bytes-like object
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 15, 2020

CLA Signed

The committers are authorized under a signed CLA.

@ReSqAr
Copy link

ReSqAr commented Jan 6, 2021

My work around is to use:

export SYSTEM_VERSION_COMPAT=1

so the OS identifies as version 10.16, see the command sw_vers.

Avoid attempting to ever parse a potential None value on the above environment var, then carry on with Mac OS X specific version checking logic...
@gnossen
Copy link
Contributor

gnossen commented Jan 12, 2021

Adding @lidizheng for a second review.

@gnossen gnossen added area/build lang/Python release notes: no Indicates if PR should not be in release notes labels Jan 12, 2021
@gnossen gnossen changed the title Workaround for Mac OS X Big Sur, Python 3.9 install fail Fix 3.9 MacOS from-source build Jan 12, 2021
Copy link
Contributor

@lidizheng lidizheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR fixes #25082

@lidizheng lidizheng merged commit ed3037d into grpc:master Jan 13, 2021
@hateyou218
Copy link

When will this get released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build lang/Python release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

grpcio fails to install on Apple Silicon
6 participants