Skip to content
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

New pypi override breaks people who override pypi #116

Closed
pytoxbot opened this issue Sep 17, 2016 · 7 comments
Closed

New pypi override breaks people who override pypi #116

pytoxbot opened this issue Sep 17, 2016 · 7 comments

Comments

@pytoxbot
Copy link

The OpenStack build farm has a decently complicated set of things it does to make sure that ~/.pip/pip.conf and ~/.pydistutils are set. The new hack_home_env code subverts that and is causing build failures in our build farm because it's causing things to actually talk to pypi.python.org, which we generally don't want to happen. BUT - we do not set pypi.openstack.org in our tox.ini files because we don't want devs running at home to be hitting our mirror.

Can we add a flag that allows disabling this behavior? We could work around it by just setting TOX_INDEX_URL in the env - but there are times when we construct this:

[global]
index-url = http://pypi.openstack.org/openstack
extra-index-url = http://pypi.python.org/simple

For things that are not official, and therefore not covered by our mirror.

@pytoxbot
Copy link
Author

Original comment by @hpk42

Monty, Marcus,

I've uploaded a tox-1.6.1 release candidate to my development index:

http://devpi.net/hpk/dev/+simple/

You can use it with "-i" to install tox-1.6.1. I'd be grateful if
you can verify it works for you. The final 1.6.1 may still change
but not in this area.

best,
holger

@pytoxbot
Copy link
Author

Original comment by @hpk42

fix issue116: make 1.6 introduced behaviour of changing to a
per-env HOME directory during install activities dependent
on "--set-home" for now. Should re-establish the old behaviour.

→ <>

@pytoxbot
Copy link
Author

Original comment by @hpk42

Yes, currently $HOME is set to a pseudo-location ({envtmpdir}) during installation of dependencies. While i want to get tox to perform more isolation in the future this change shouldn't have made it to 1.6.0.

@pytoxbot
Copy link
Author

Original comment by @qwcode

so, to be clear, in 1.6, ~/.pip/pip.conf is ignored completely due to the HOME change?

@pytoxbot
Copy link
Author

Original comment by @hpk42

FYI I plan to back the change out by making it depend on an option. And release a 1.6.1... Pending on camping place network connectivity :-)

@pytoxbot
Copy link
Author

Original comment by @hpk42

more things:

a) you might want to look into http://devpi.net to simplify your index setup (and remove the need for "extra-index".

b) You might want to check if the new testenv install_command setting could help.

c) i am open to a command line option to disable/control the hack-home setting

d) sorry for the troubles

@pytoxbot
Copy link
Author

Original comment by @hpk42

Could you add a -i ALL=our_index_url to the tox invocation? (it will set pip.conf/pydistutils.cfg in the pseudo home). As to extra-url, that would need to be added to tox, i think.

(note i am off for two weeks vacation so no or slow responses now)

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant