Skip to content

[Python] Fixes issue 40325 - grpcio fails to install on all non-Mac Apple devices internal builds#40347

Closed
asheshvidyut wants to merge 2 commits intogrpc:masterfrom
asheshvidyut:fix/issue-40325
Closed

[Python] Fixes issue 40325 - grpcio fails to install on all non-Mac Apple devices internal builds#40347
asheshvidyut wants to merge 2 commits intogrpc:masterfrom
asheshvidyut:fix/issue-40325

Conversation

@asheshvidyut
Copy link
Member

Description

Fixes #40325

@asheshvidyut asheshvidyut added the release notes: no Indicates if PR should not be in release notes label Jul 28, 2025
@asheshvidyut asheshvidyut marked this pull request as ready for review July 28, 2025 15:55
Comment on lines +165 to +168
< (
10,
14,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

can't this be fit into the same line now? It was previously split by black into multiple lines because of the 80 character limit I believe, but I think that shouldn't be needed now.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was done by black.

Copy link
Member

Choose a reason for hiding this comment

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

We should be breaking it up into separate variables to make it readable. Black producing unreadable code is a hint you need to refactor. Something like this

def macos_target_ver():
    target_ver = sysconfig.get_config_var("MACOSX_DEPLOYMENT_TARGET")
    if target_ver is None or target_ver == "":
        return tuple()
    return tuple(int(p) for p in target_ver.split("."))


if sys.platform == "darwin":
    if "MACOSX_DEPLOYMENT_TARGET" not in os.environ:
        target_ver = macos_target_ver()
        if target_ver and target_ver < (10, 14):
            os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0"

eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Aug 11, 2025
### Description

Fixes grpc#40325

Closes grpc#40347

COPYBARA_INTEGRATE_REVIEW=grpc#40347 from asheshvidyut:fix/issue-40325 4a22fb4
PiperOrigin-RevId: 788705992
paulosjca pushed a commit to paulosjca/grpc that referenced this pull request Aug 23, 2025
### Description

Fixes grpc#40325

Closes grpc#40347

COPYBARA_INTEGRATE_REVIEW=grpc#40347 from asheshvidyut:fix/issue-40325 4a22fb4
PiperOrigin-RevId: 788705992
@sergiitk sergiitk added release notes: yes Indicates if PR needs to be in release notes lang/Python and removed release notes: no Indicates if PR should not be in release notes labels Sep 9, 2025
@asheshvidyut asheshvidyut changed the title [Python] Fixes issue 40325 [Python] Fixes issue 40325 - grpcio fails to install on all non-Mac Apple devices internal builds Sep 12, 2025
asheshvidyut added a commit to asheshvidyut/grpc that referenced this pull request Sep 12, 2025
### Description

Fixes grpc#40325

Closes grpc#40347

COPYBARA_INTEGRATE_REVIEW=grpc#40347 from asheshvidyut:fix/issue-40325 4a22fb4
PiperOrigin-RevId: 788705992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grpcio fails to install on all non-Mac Apple devices internal builds

3 participants