Skip to content

Need a better way to deal with wheels when using pip #53

@antevens

Description

@antevens

We have some problems when dealing with wheels and pip.

Pip does not support wheels prior to version 1.4.0
Pip wheels require setuptools/distribute > 0.8
Python 2.6 and older does not support setuptools/distribute > 0.8
Pip >= 1.5.0 tries to use wheels by default, even if wheel package is not
installed, in this case the --no-use-wheel flag needs to be passed
Versions prior to 1.4 don't support the --no-use-wheel flag

So depending on the version of pip is installed and if wheel support is available we now have to:

< 1.4.0 no flag

= 1.4.0 and < 1.5 ideally pass the use wheel flag if wheel support is installed but no flag is acceptable
= 1.5.0 pass the --no-use-wheel flag if wheel support isn't available, otherwise pass no flag

I started working on this on January 2nd when 1.5 was released but I'm still running into issues for some pip versions/cases.

Right now I'm using the following command but there are some cases where it does not work as it should, we need a better way of dealing with this.

"${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; ${pip_env} --log ${cwd}/pip.log install ${install_args} $wheel_support_flag ${proxy_flag} ${source}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions