-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
readthecods uses virtual environment even when it is disabled #1621
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
Btw I do have a |
Well, I can confirm my hypothesis. In case I remove the Can you please fix the problem that having a |
If the intended outcome is to skip Fixes for this are welcome. |
Hello, bitten by this as well. I think I 've tracked the problem down to https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/tasks.py#L281 That piece of code uses the defined requirements file and if it does not exist, tries to guess it. Then in line 294 the requirements_file_path variable is bound to exist if the repo has a requirementst.txt file (or a pip_requirements.txt file). That part of code has been refactored in ff43236 although I must admit I do not see at this point in time why the previous version was working fine. This seems to me to be entirely independent of the virtualenv setting, so the documentation is misleading as already pointed out. At least the part about "Requires Virtualenv" that is. As far as a design decision goes, my proposal (if worth anything) is to have a flag to allow skipping installing requirements.txt, independent of the |
I think this is something that we need to consider for our upcoming new build system. See related ticket #1649, |
I can't build my documentation as well. It seems having a requirements.txt file overrides the tick mark Install your project inside a virtualenv using setup.py install. |
#1649 was closed after a proposed fix that changed this option Is this still an issue for anyone? |
@agjohnson I think so, yes. Not sure how this got fixed and what actions are required on my part, but what I did was empty out the Are there any docs detailing the new behavior and how it is configured ? |
Hm, i guess this issue is related to my current problem: |
We automatically try find requirements.txt. You should be able to explicitly set |
This is still not working yet. There is a PR to handle this case at readthedocs/readthedocs-build#38 |
So, the residual problem of this ticket is that rtd automatically picks the |
We currently automatically detect the configuration file if the setting is |
From this comment https://github.com/rtfd/readthedocs.org/pull/4355/files#r202485887 I suppose that using I don't really like that solution because it's not too explicit to me, but if that works to omit finding it, we can close this issue. @stsewd what do you think? |
I was waiting to have the v2 released to close this, right now, people can't use |
This was implemented in our configuration file (v2), isn't available for users yet, but I hope it will be soon or at least for some users (we can add a flag to make it available to some projects). |
@stsewd I wouldn't close the issue if we don't have a solution for the final user yet. |
I going to bring this to the team and see if we can select some projects to use the v2 of the config file, if not I'll open this till we are ready for that |
So, we are planning to activate this to some projects, if anyone is interested in test the beta of the v2 config, please comment with your rtd project :) |
I'm interested in testing it with Blueproximity. The doc build is currently failing because of this bug. |
@Thor77 great! here are some docs of the v2 config file https://github.com/rtfd/readthedocs.org/pull/4451/files#diff-33bbde7fca852e881b51aa90f9f86b3f I'll let you know when you can add the file to your project (we only need to activate a flag for your project) |
Hi, I haven't changed anything in my code but from one day to the next the built of my docs fails.
When building, it starts with
The latest statement fails because it cannot find the HDF5 library (which is used by PyTables).
However, I don't want read the docs to install my package at all, I have not checked the box "Install your project inside a virtualenv using setup.py install". But it still tries to do that!
Why? How can I force read the docs not to install my package but just compile the docs?
Thanks!
The text was updated successfully, but these errors were encountered: