How can I set alternative PyPI URL

22 views
Skip to first unread message

petee

unread,
Feb 10, 2022, 3:16:53 PM2/10/22
to sphinx-users
Hello,
I cannot directly download from pypi.org.
If I have to install something using pip, I use '--index-url' option, i.e.:
pip --index-url http://my-index.net install foo
Also I can store this information in ~/.pip/pip.conf.

In Sphinx config file I'm trying to define some third-party extension. But Sphinx is not able to install it automatically as it's not able to reach pypi.org.

Is there an option to define alternative PyPI to be used by Sphinx?

-- 
petee

petee

unread,
Feb 10, 2022, 5:37:10 PM2/10/22
to sphinx-users
OK, it looks like I wrongly blamed my environment, but I just made false assumptions.

I assumed[1] that Sphinx will process the list of extensions inside conf.py and will install what is missing. But this list only defines which extensions will be used during build process.
All extensions must be installed earlier. For example using pip.

[1] I'm just starting my adventure with Sphinx.

-- 
petee

Jean Abou Samra

unread,
Feb 11, 2022, 10:48:07 AM2/11/22
to sphinx...@googlegroups.com, petee
What does 'install automatically' mean? I'm a newbie here,
but I am not aware of Sphinx doing this.

Best,
Jean

Reply all
Reply to author
Forward
0 new messages