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

fix: remove --use-pep517 flag from pip command #4400

Closed
wants to merge 1 commit into from

Conversation

orlevii
Copy link

@orlevii orlevii commented Aug 18, 2021

Pull Request Check List

Resolves: #4399

@orlevii orlevii marked this pull request as ready for review August 18, 2021 22:09
@neersighted
Copy link
Member

neersighted commented Nov 14, 2021

I think this PR is misguided at best. What's happening here is the pystan release archive is broken. It cannot be built in a PEP-517 environment, which is isolated by definition.

Try reproducing with the following (poetry and pip are both not involved in this build process, as we instead use build):

docker run --rm -i --entrypoint bash python:3.9 <<EOF
set -xe
curl -LO https://files.pythonhosted.org/packages/10/9f/dcecf31ac08842a675ec337a14439b37d75f6da42f034b1fd5eb90b10b84/pystan-2.19.1.1.tar.gz
tar xvf pystan-2.19.1.1.tar.gz
cd pystan-2.19.1.1
python -m pip install build
python -m build
EOF

While setuptools is compatible with PEP 517, checking that your dependencies are installed by importing them is non-standard and not supported. pystan's setup.py does this, and it breaks in the face of a modern build environment.
A wheel (for your platform) would partially solve this, but is not uploaded.

I would suggest migrating to a newer pystan which solves these build woes, or if that is not possible, vendoring the code and patching the checks out of setup.py. While building with classical setuptools (in a non-isolated environment) does technically not trigger this, Poetry is moving to PEP-517 installs only (as is pip in the future), and as such, I don't think this is an appropriate fix.

@orlevii orlevii deleted the fix_pip_install branch November 26, 2021 23:36
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
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.

Poetry 1.2.0a2 - Experimental installer: pip install fails for some packages
2 participants