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

Comments

Projects
None yet
1 participant
@pytoxbot

pytoxbot commented Sep 17, 2016

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

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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 commented Sep 17, 2016

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

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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 commented Sep 17, 2016

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

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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 commented Sep 17, 2016

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 pytoxbot closed this Sep 17, 2016

@pytoxbot

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

Original comment by @qwcode

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

pytoxbot commented Sep 17, 2016

Original comment by @qwcode

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

@pytoxbot

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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 commented Sep 17, 2016

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

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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 commented Sep 17, 2016

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

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

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)

pytoxbot commented Sep 17, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment