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

Updated FAQ to include text produced by iOS when installing binary packages #857

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

freakboy3742
Copy link
Member

@freakboy3742 freakboy3742 commented Sep 12, 2022

This commit adds a monkeypatch to distutils to disable the C compiler. This PR updates the FAQ to reference the message that will be generated.

Also adds the --prefer-binary flag when installing packages so that an older binary will be preferred to a more recent source package.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Copy link
Member

@mhsmith mhsmith left a comment

Choose a reason for hiding this comment

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

--prefer-binary applies to all wheels, whether pure-Python or not. I've encountered some projects on PyPI which released pure-Python wheels for old versions, and then stopped for some reason and now only release sdists for new versions. In that case, --prefer-binary will prefer the old wheel over the newer sdist, which probably isn't what the user wants.

I worked around this by adding this patch to Chaquopy's copy of pip, which causes it to prefer only binary wheels, not pure-Python ones.

Unfortunately I didn't make a note of what packages this affected, so I don't know whether this is still necessary. --prefer-binary will get us 99% of the way there, so let's just go with it, and if it causes any problems we'll find out soon enough.

@mhsmith mhsmith merged commit e371c94 into beeware:main Sep 12, 2022
@freakboy3742 freakboy3742 deleted the update-faq branch September 14, 2022 02:33
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.

None yet

2 participants