Open dvarrazzo opened 1 year ago
Hi @dvarrazzo, thank you for opening the issue.
Since the PEP 517 implementation in pip
, pip
will try to create an isolated virtual environment when building the project.
This probably means that pip
will reach out to PyPI to find out what the dependency graph for the build dependencies (the ones specified in pyproject.toml [build-system] requires
+ wheel
). I don't think pip
is caching this information as for the time being, so that would explain why it tries to connect via the internet.
If you want to do a completely offline build, I suppose you can try:
pip install -v --no-build-isolation .
Does that work for you?
setuptools version
setuptools-65.6.3
Python version
Python 3.10
OS
Ubuntu
Additional environment information
No network connectivity, e.g.
Description
Running
python ./path/to/package/setup.py install
raises a warning:however,
pip install ./path/to/package
requires access to the network in order to work, even if all the dependencies are available locally. This means that it's impossible to hack on your favourite C extension if the network is not available.Expected behavior
See above.
How to Reproduce
With the network available. Note that all the build dependencies are available:
Taking down the network:
setup.py install
works instead:Output
See above.