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

install_command w/ easy_install fails when tox is run twice #130

Closed
pytoxbot opened this issue Sep 17, 2016 · 1 comment
Closed

install_command w/ easy_install fails when tox is run twice #130

pytoxbot opened this issue Sep 17, 2016 · 1 comment

Comments

@pytoxbot
Copy link

@pytoxbot pytoxbot commented Sep 17, 2016

VERSION INFO: tox 1.6.1 with python 2.7, virtualenv 0.10.1, setuptools 0.9.8 (or newer)

When you use the new "install_command" with easy_install you get an error when you run the same test environment twice without recreating it. The problem occurs in the sdist installation step because 2 options "-U --no-deps" are appended after the package.

shell> tox -e xxx -r
shell> tox -e xxx
...
cmdargs=[local('.../MY_PROJECT/.tox/xxx/bin/easy_install'), '-i', 
'MY_INDEX_SERVER_URL', '.../MYPROJECT/.tox/dist/my_project-X.X.X.zip', 
 '-U', '--no-deps']
...
error: Could not find suitable distribution for Requirement.parse('-U')

The problem is the last 2 options "-U --no-deps" that are appended to the easy_install command-line. When you place these 2 options before the package, easy_install is happy and will install the package at the second time.

EXAMPLE:

# FILE: tox.ini
...
[testenv:xxx]
install_command = easy_install {opts} {packages}
...
@pytoxbot
Copy link
Author

@pytoxbot pytoxbot commented Sep 17, 2016

Original comment by @hpk42

fix issue130: you can now set install_command=easy_install {opts} {packages}
and expect it to run without the need to recreate. Thanks jenisys for
precise reporting.

→ <>

@pytoxbot pytoxbot closed this Sep 17, 2016
@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant