-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] pip install not working while installing packages defined in setup.py #4543
Comments
Hi @Niladri24dutta, please note that v58.1.0 is quite old and therefore does not receive active support. Could you please try the newest version (of both setuptools and pip)? I also recommend using |
@abravalheri there are some constraints in upgrading the version of pip to 24 and setuptools to latest version as it is not managed by me. As this was working till last friday, I am curious to know has anything changed recently which is causing this issue. |
Hi @Niladri24dutta, you can start by checking which versions of which packages installed in your environment have changed since Friday. Maybe that helps. Since you have constraints that you can not update and the version of setuptools that you are using is no longer officially supported, I will go ahead and close this issue. |
@abravalheri I am able to reproduce this issue locally with latest version of setuptools as well, and I also checked that no other package versions were upgraded after friday except the I used the below version |
Thank you very much for confirming @Niladri24dutta. Could you please provide a complete minimal reproducer including a "mock" version of the package that you are trying to install as a source code? Please also make sure to use either a brand new virtual environment and/or docker container to avoid external factors influencing in the reproducer. (This is necessary to investigate the problem further). Can you also describe what happens when you add the
|
@abravalheri No change even after using
Here is the release https://github.com/pypa/wheel/releases/tag/0.44.0 . Could there be any conflict due to this? |
When you say you tested against the latest version of
There is a report of lack of compatibility in pypa/wheel#631 (comment). To investigate this more, I believe it would be important to have a complete minimal reproducible example. |
@abravalheri I have figured out a work around for this . I am not sure if this is expected way of installing the extra packages or not in the new version. This could also be due to the latest version of wheel (0.44.0). |
Thanks for the feedback @Niladri24dutta.
We can, if we have a complete reproducer for the problem that help us to identify its root cause and it is related to setuptools. Without a reproducer or indication of a clear connection between setuptools and the problem I think this issue should be closed. Users will still be able find it by searching even if the issue is closed. For now I will close the issue, if anyone has a complete reproducer, please feel free to post here and I will re-open the issue. |
setuptools version
setuptools==58.1.0
Python version
3.9.19
OS
Linux(Ubuntu 22.04)
Additional environment information
facing this issue while running my devops pipeline in Azure , it is using a Linux agent pool with Ubuntu 22.04 image.
Description
This issue is happening since today morning and our CI pipelines are failing because of this . We are trying to install python packages which are defined in our setup.py file using the below command -
"testing_req" is defined under
extras_require
argument ofsetup()
. Here is how the setup.py file looks like -I have observed that if I use the above pip install command it is only installing the packages which are present under "install_requires" but it is ignoring all the packages which are mentioned under "extras_require" . It should also install the additional packages apart from the required packages. Currently as a workaround I had to provide the path to the requirements.txt file to install the packages.
**Please find the versions used below
Expected behavior
While using the below command -
python -m pip install '.[testing_req]' --index-url <some Url>
It should also install the additional packages apart from the required packages. But it is only installing the packages which are present under "install_requires" but it is ignoring all the packages which are mentioned under "extras_require"
How to Reproduce
Output
Observe that additional packages mentioned under "extras_require" are not installed . Only the packages under "install_requires" are getting installed.
The text was updated successfully, but these errors were encountered: