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

Setup: Fix unicode path related installation errors (#5678). #5678

Merged
merged 1 commit into from Mar 30, 2021

Conversation

bwoodsend
Copy link
Member

Pip prefers to install sdists by building a .whl then installing that. If the wheel package is not installed then it defaults to the older python setup.py installmethod. This older method breaks if it encounters unicode paths so ideally we want to wheel installed before attempting to install PyInstaller itself. PEP517's build-system.requires adds this option.

One downside of this is that it makes source installations slower because it creates a full blown virtual environment to build this wheel in - even if you already have wheel installed. Another interesting caveat is that it doesn't change pip install -e ..

Pip prefers to install sdists by building a .whl then
installing that. If the `wheel` package is not installed
then it defaults to the older `python setup.py install`
method. This older method breaks if it encounters unicode
paths so ideally we want to `wheel` installed before
attempting to install PyInstaller itself. PEP517's
build-system.requires adds this option.

Prevents errors like pyinstaller#5670.
@bwoodsend bwoodsend merged commit 6df79e6 into pyinstaller:develop Mar 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants