Can't run setup.py offline due to setup_requires - setup.py calls home
hello at ezaquarii.com
Sun Feb 10 18:33:34 EST 2019
I'm trying to build a debian package in offline environment (build server).
To build this package, I need to ship all python dependencies as source
packages and build them there. This is no problem for all, except one
package that has build-time dependencies: Automat-0.70.
debian/rules calls this pip to install all requirements from local
pip3 install --log=... --no-cache --no-index --find-links=pypi
--no-binary=":all:" -r requirements.txt
Directory pypi contains ALL dependencies required for build.
This works ok when build server has connection to network, but fails for
offline builds. I pinpointed the problem to package Automat, that
specifies some dependencies via setup_requires=[...]:
Trying to build Automat locally by calling setup.py fails immediately in
my offline environment:
$ python setup.py
distutils.errors.DistutilsError: Download error for
[Errno 111] Connection refused
Is there any way to stop Distutils from calling home?
More information about the Python-list