-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Upgrade setuptools versions before installation like we do with pip #7241
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
Did you try replicating in a clean environment with the same python version as rtd? Also, what OS are you using? And I can see your last build is passing https://readthedocs.org/projects/deel-lip/builds/11351896/ |
Latest build is passing because I switched from using I can install locally with |
Maybe we are using an old version of setuptools, also I think |
I am using the default-bundled
Yes, I think so, but |
We force the version to be 45.1.0 https://github.com/readthedocs/readthedocs-docker-images/blob/f8db06c9cf64c3473a524c08b547805288b81f71/Dockerfile#L182
Yeah, that's why we recommend using a configuration file (pip is the default there) |
I've the same issue.
The issue it's is related with the fact that pip in readthedocs envirioment it's not in the last version. |
It's possible to force an upgrade of pip and setuptools in readthedocs system using the setup.py? For example python -m pip install --upgrade pip setuptools That solved in my machine |
We do upgrade pip before building. If we need to update setuptools as well and it doesn't break anything I'm 👍 |
Issue related with tensorflow/tensorflow/issues/34302 also readthedocs/readthedocs.org/issues/7241
I put that in my setup.py
and created a new build at readthedocs. This it's the output
The problem it's realted with this version of setuptools. |
Also, a workaround is to force the upgrade of setuptools from a requirements file https://docs.readthedocs.io/en/stable/config-file/v2.html#python-install The python.install key will execute the steps in the order you put them, so you can have a requirements file updating setuptools and after that install tensorflow. I'll check how the setuptools upgrade goes from our side. |
This worked! I fixed the setuptools to be at version 49.1.0. Thanks! |
@devmessias btw, if this is the repo, you need to change to v2, otherwise that setting doesn't have effect when using the v2 config file https://github.com/stdogpkg/emate/blob/develop/.readthedocs.yaml (also, the v2 config file ignores all the options from the webui, so you'll need to install your package there as well) |
Ah ok. I changed the config in the admin panel because of that. The v2 has backward compatibility with v1 files and configs? |
Not really, but you can read how to migrate at https://docs.readthedocs.io/en/stable/config-file/v2.html#migrating-from-v1 |
Ok, Thank you for all the help! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There is a PR open #7290 |
Details
Expected Result
I would expect the
python setup.py install
command to install the package without issue... I have no problem installing it with the same command locally with the same python version.Actual Result
The build fail due to Could not find suitable distribution for Requirement.parse('tensorflow<=2.2,>=2')
The text was updated successfully, but these errors were encountered: