-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Is it possible to disable/modify --upgrade-strategy eager
when pip installing the source package?
#8890
Comments
Hi! We don't currently support changing the Since you are using conda already for your environment, would it be possible to install your local package with conda instead? Or even using the If that is possible, you can probably delegate that to conda instead of Read the Docs installing your package via pip and using |
@humitos thanks for your reply. I'll try what you suggest and let you know! |
@humitos seems to work! thank you again for the suggestion :) |
Hi there @humitos |
@st-bender this use case will be supported once we implement #9062 |
Hi @humitos # environment.yml
dependencies:
- pip
- pip:
- .[extras] # or ..[extras] if the environment file is in a subdirectory The other option is using # readthedocs.yml
build:
jobs:
post_create_environment:
- python -m pip install --no-cache-dir .[extras]
# no python install section This latter option got me thinking a bit more, since all is already set up, it would probably be good enough, and maybe easy, to just introduce an |
I'm struggling to get around inconsistent package upgrade done in this build: https://readthedocs.org/projects/ipytone/builds/17209864/. Context: an indirect dependency ( I've tried several of workarounds like explicitly add and pin these two packages in my I could also install the package via the conda environment file but I guess this wouldn't work well with RTD pull-request builds (a feature that I like a lot)? For some reason, when I tried it the Then I've tried setting up a I could try using Is there any reasonable workaround that I've missed? In general I agree with @st-bender #8890 (comment), it would be great and easy if we could just opt-in or opt-out the |
I suppose that you may be hitting #3829 . I enabled I noticed that you have 2 Read the Docs Config YAML files. It seems that these lines https://github.com/benbovy/ipytone/blob/master/readthedocs.yml#L5-L7 are producing the problem. Would you mind deleting that file and using https://github.com/benbovy/ipytone/blob/master/.readthedocs.yaml instead, which looks more updated? |
Oops yes I totally missed that. It works now without the old config file. Many thanks for your help @humitos! |
Change install method to avoid upgrading packages after conda install: readthedocs/readthedocs.org#8890
hey guys, just wanted to drop a line and thank the Readthedocs devs for implementing build jobs, and to those that are coming here looking for solutions, using said jobs eg https://github.com/ESMValGroup/ESMValTool/pull/2913/files works a treat, and avoids fully the unnecessary pip eager installation 👍 🍺 |
Hi RTD Team,
First of all thanks for the amazing service that you provide to the community!
Is it possible to disable/modify
--upgrade-strategy eager
when pip installing the source package?Details
Expected Result
We have a series of dependencies that need to be fixed in order for our documentation to build properly.
We use an environment file that specifies
numpy==1.20
because of some external packages that we use for our docs.Actual Result
Since
numpy
is one of our requirements and we would like not to force any version in ourrequirements.txt
.When the dependencies are installed during the build, the
--upgrade-stategy eager
forces thenumpy
version to be upgraded to 1.22, which breaks several of our examples.The text was updated successfully, but these errors were encountered: