Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle a quirk when building on MacOS Big Sur. #12857

Merged
merged 2 commits into from
Sep 12, 2021

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Sep 11, 2021

Adds an option to set the Big Sur platform to "10.16" instead of the new scheme of "11.0",
when building dists. This may be required for pip to be able to install the resulting dists.

Also ensures that this will work for our own wheels, by setting this when building the native code
(otherwise setup.py will warn that the native code platform is incompatible, and ignore the 10.16 setting).

[ci skip-rust]

[ci skip-build-wheels]

[ci skip-rust]

[ci skip-build-wheels]
register(
"--macos-big-sur-compatibility",
type=bool,
default=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we configure this as True in our pants.toml or in some more specific way such that releases do the right thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, oops, yes we should. It seems like this should usually be True, but I'm not confident enough in that fact for that to be the default.

[ci skip-rust]

[ci skip-build-wheels]
@benjyw benjyw merged commit b4da0e9 into pantsbuild:main Sep 12, 2021
@benjyw benjyw deleted the big_sur_compat branch September 12, 2021 01:53
@kaos
Copy link
Member

kaos commented Sep 12, 2021

Is there a pip issue we could reference? (unless I missed it, on the phone).

Feels like this should be resolved in pip eventually.

@benjyw
Copy link
Contributor Author

benjyw commented Sep 12, 2021

There are some discussions around Big Sur compatibility, but I haven't found a ticket. I'd file one except I'm not sure I fully understand the issue. I think it may only be happening in some cases, because there are "11_0" wheels out there that presumably people are successfully consuming.

@kaos
Copy link
Member

kaos commented Oct 5, 2021

FWIW, I had to set this to False to build on my Mac today... as my python was configured with "11.6", it bailed hard when we overrode it with "10.16".

@benjyw
Copy link
Contributor Author

benjyw commented Oct 5, 2021

Yeah, very unclear to me what the right thing to do is. But good that it's False by default at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants