Skip to content

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

@pytoxbot

Description

@pytoxbot

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}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions