Replies: 2 comments 1 reply
-
Calling |
Beta Was this translation helpful? Give feedback.
-
To resolve the issue of your local folder not being picked up first in the Python path when building the documentation for PyTorch, you can try the following steps:
This will remove the package installed with
This will install the package in editable mode, which will create a link to your local code, ensuring that your local folder is picked up first in the Python path.
With the package installed in editable mode, it should now pick up your local code first, and any changes you make to the code will be reflected in the documentation. By following these steps, you should be able to ensure that your local folder takes precedence in the Python path, and the documentation build process should use the local code instead of the one installed in the miniconda3 site-packages, avoiding any potential mismatches and failures. |
Beta Was this translation helpful? Give feedback.
-
I am working with pytorch and am following the documentation to build the documentation locally. I am pursuing this in issue pytorch/pytorch#104113 (comment)
We run
python setup.py develop
The processing sets up egg-links and egg-info files in the miniconda3 site_packages.
The is a second package called torchgen in the top_level.txt.
When i run the make html to build the documentation it picks up files from miniconda3 rather than my local folder. my local folder in the egg link is not first in the path. Any advice as to how to get my local folder to be first in the path so it picks up the local code only. This is an issue as there is a mismatch between the miniconda3 and the local code - so there is a failure.
I am thinking that if the egg links were correct as setup by the setup tools - then my local code would be picked up.
Any advice would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions