-
-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose virtualenv --no-download somewhere in tox ini #497
Comments
@rogalski - interesting. I have the same set up at work and have never noticed that problem. Maybe this is because I have set my
I did that ages ago, before we actually had added the company index to the tox inis, so I will have try this out, how tox behaves with that extra hint for pip. Edit maybe it is not the same setup after all, as you have a local Pypi mirror and not a devpi server ... |
Using code below in tox.ini seems to do the job:
|
Duplicates #446 I believe? |
Indeed #448 is the one I was thinking of |
Any extra actions required on my side for removing an |
So if I understand it correctly this is indeed a dupe of #448, so I'd say we close this and the discussion how to improve the situation can be followed up there ... |
I made a plugin to turn virtualenv's behaviour off entirely: https://github.com/asottile/tox-virtualenv-no-download |
I work in environment where local PyPI mirror is used. I set non-standard index server in [tox] section of tox.ini file and it works fine when existing virtualenv is reused. When new virtualenv is created, it still attempts to connect to standard PyPI server (see
create_environment
andinstall_wheel
functions). It spends long time there and eventually get timed out. While virtualenv is still created successfully, long timeout is certainly unexpected behavior.It could either be done explicitly (something along the lines of
virtualenv_custom_args
[text],virtualenv_no_download
[bool] option), or maybe implicitly (add --no-download when custom index server is defined)I'd like to get some input before I'll start to work on a PR.
The text was updated successfully, but these errors were encountered: