-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Avoid compiling Python when building documentation #2263
Conversation
Each time the documentation is built, the Python version is compiled, which takes several minutes. I recommend you to avoid compiling that particular PATCH Python version and stick with the 3.9 provided by Read the Docs (that's already compiled). The current Python 3.9 version exposed by Read the Docs is `3.9.17` This will make your builds fast and reduce the CPU usage on Read the Docs as well.
Instead, please update our python here: https://github.com/wemake-services/wemake-django-template/blob/master/%7B%7Bcookiecutter.project_name%7D%7D/pyproject.toml#L10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It must match the version we have in pyproject.toml
@@ -17,9 +17,6 @@ build: | |||
jobs: | |||
# See https://github.com/readthedocs/readthedocs.org/issues/4912 | |||
pre_create_environment: | |||
# Select Python version (keep in sync with other versions): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't remove these lines. Because soon it will be updated and RTD will start to fail.
Closing, since this is now outdated. |
Note that you still have this problem. You are compiling Python 3.11.9 now, and it takes 205 seconds. |
I don't think that there's any other way :( |
Why do you need the exact same patch release of Python? The minor version should be more than enough to build the documentation. Patch versions usually fixes small bugs that should not affect your use case. |
Each time the documentation is built, the Python version is compiled, which takes several minutes.
I recommend you to avoid compiling that particular PATCH Python version and stick with the 3.9 provided by Read the Docs (that's already compiled).
The current Python 3.9 version exposed by Read the Docs is
3.9.17
This will make your builds fast and reduce the CPU usage on Read the Docs as well.