Open Kreisfahrer opened 5 years ago
This appears to be a duplicate of #206. Windows currently isn't supported as the paths we pick for cache directories contain :
which is invalid there (reserved for use in the drive letter). I'm surprised that it worked on 3.2.0 given that I don't think anything changed in that code between versions
It's probably surprising, but I have successfully used it on Windows 10 with tox-pip-extensions plugin until version 3.2.1. Right now I have pinned venv-update to 3.2.0 and it works perfectly fine. Just curious if it actually worth to support windows...
It's probably not hard, I think you could make the cache bits work with something simple like:
if os.name == 'nt':
index_url = index_url.replace(':', '_')
here: https://github.com/Yelp/venv-update/blob/02860446c983f8df10db221d66e22a7a912a550c/pip_faster.py#L89
and here: https://github.com/Yelp/venv-update/blob/02860446c983f8df10db221d66e22a7a912a550c/pip_faster.py#L162
but note that we've never tested venv-update
on anything but linux, if we want to actually support windows we should probably set up CI for it in some capacity
I'm also very surprised that 3.2.0 works, given the code that's erroring (and what I suspect is crashing) did not change between 3.2.0 and 3.2.1
Error occurs on Windows with venv-update version 3.2.1, pip version 18.1, python version 3.6. Command pip-faster.EXE install -rrequirements.txt
Stack trace:
It works fine on version 3.2.0.