-
Notifications
You must be signed in to change notification settings - Fork 54
sdist cannot be installed on Python 2 #51
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
Comments
I think what's happening is that Pip tries to install+run Flit due to pep517's pyproject.toml. However, if I'm understanding Flit's README correctly, you need Python 3 to run Flit, but Flit can distribute Python 2 modules. If that's the case, I think that means you can never install Flit-produced sdists on Python 2? |
Flit's pyproject.toml seems to confirm what I suspected:
|
Yes, having a bit of trouble with that. Before PEP 517, it was fine: flit would generate a setup.py which worked with setuptools for Python 2 or 3. Now that PEP 517 is in effect, tools need to install flit first. I'm considering making the core parts of flit Python 2 compatible to allow that. I'm just dragging my feet because it's late 2019, and it feels backwards to be porting code back to Python 2. |
It can now be installed from source with There's some bootstrapping problem I'm still investigating which prevents it from working with |
The bootstrapping problem is pypa/pip#6599 - I've just made a PR for that. |
Attempting to install pep517 from an sdist on Python 2.7 results in an error:
The text was updated successfully, but these errors were encountered: