https://github.com/alkasm/test-vcs-offline
https://github.com/alkasm/test-vcs-offline
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alkasm/test-vcs-offline
- Owner: alkasm
- Created: 2021-10-23T05:16:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-23T05:16:42.000Z (over 4 years ago)
- Last Synced: 2025-01-13T05:29:06.419Z (over 1 year ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Reproduce
Tested with `pip==21.3.1`, all local installs (i.e. clone this repo and run these commands within the folder)
```
git clone git@github.com:alkasm/test-vcs-offline.git
cd test-vcs-offline
python3 -m venv venv
source venv/bin/activate
pip install pip==21.3.1
```
### Installation online works as expected
```
pip install .
```
### Installation offline complains that the VCS dep cannot be pulled
Disable network access (e.g. turn off wifi)
```
pip install .
```
### Installation offline with --no-deps doesn't check that version constraints are satisfied
Note that `setup.py` requires `six==1.15.0`, so this install should fail with 1.16.0 installed.
With internet access:
```
pip install six==1.16.0
```
Disable network access (e.g. turn off wifi)
```
pip install --no-deps .
```
Notice that no error occurs during the installation.
### Installation offline with the old resolver does not eagerly install the VCS dep, and does version check
With internet access:
```
pip install six==1.16.0
```
Disable network access (e.g. turn off wifi)
```
pip install --use-deprecated legacy-resolver .
```
Note that pip errors during the installation, since the version of `six` does not match the expected version.