-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
--no-deps argument is ignored when a pyproject.toml file is present #7444
Comments
works around pypa/pip#7444 resolve python-poetry#1689
Try invoking pip with the When a |
In any case, |
I suppose using black as an example repo was the wrong choice then in this case. I didn't confirm it was giving me the same error/output originally. I also realize the difference of the build-dependency line now sorry for the confusion there. I am using poetry for a package that led me to this issue. I know this isn't a poetry support repo, but I used it to output a setup.py for my project and I am trying to install it now.
Running
I know why the install backend dependency step is failing, it is because the package exists on private pypi repository that it doesn't now about. What I don't understand is why it is getting called. Inside the pyproject.toml file I have the block below. Removing this causes everything to work as expected. Is this a problem with having this build back end? I have went in an attempted to detect when anything in that file is being called and I cannot find a call, it seems it is all internal to pip.
|
The backend is getting called because pip needs it to install the package. It is also called if you remove the definitions in So the problem here is why |
Thank you for your help @uranusjr you gave me enough information that I was able to track down how the process flow is being called in pip to see that while the build step is being called by pip the requirements are flowing by from the backend. I didn't really understand build isolation till now and how it is getting its own copy and all my hook work I was trying to do was failing miserably. This is definitely not a pip issue and is a backend problem. |
works around pypa/pip#7444 resolve python-poetry#1689
Environment
Description
When installing an editable install and a pyproject.toml file is present, the
--no-deps
argument is ignored.Expected behavior
The
--no-deps
argument should be respected and no dependencies installedHow to Reproduce
git clone https://github.com/psf/black.git
mkdir test
cd test
python3 -m venv .venv
source .venv/bin/activate
pip install --no-deps -U -e ../black/
Output
With pyproject.toml present
Without pyproject.toml
I also tested this just trying to remove any of the build system lines and the
--no-deps
is still ignored.The text was updated successfully, but these errors were encountered: