Skip to content

Pip 9.0.1+ removes the --use-wheel flag #46803

@thenoid

Description

@thenoid

Description of Issue/Question

Later versions of pip default to using wheels and the --use-wheel flag has been removed. If a virtualenv.manged has the use_wheel: True pip will error out. But this flag is still needed to get older versions to use wheels.

Setup

{{ somepath }}/venv/:
virtualenv.managed:
- system_site_packages: False
- requirements: {{ somepath }}/requirements.txt
- require:
- file: {{ somepath }}/requirements.txt
- pkg: python-pip
- pkg: python-virtualenv

Steps to Reproduce Issue

[INFO    ] Executing command ['/somepath/venv/bin/pip', 'install', '--requirement', '/somepath/requirements.txt', '--use-wheel'] in directory '/home/ubuntu'
[ERROR   ] Command '['/somepath/venv/bin/pip', 'install', '--requirement', '/somepath/requirements.txt', '--use-wheel']' failed with return code: 2
[ERROR   ] stderr:
Usage:
  pip install [options] <requirement specifier> [package-index-options] ...
  pip install [options] -r <requirements file> [package-index-options] ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --use-wheel
[ERROR   ] retcode: 2

Versions Report

Salt Version:
           Salt: 2017.7.2

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.6 (default, Nov 23 2017, 15:49:48)
   python-gnupg: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.4.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5

System Versions:
           dist: Ubuntu 14.04 trusty
         locale: UTF-8
        machine: x86_64
        release: 3.13.0-143-generic
         system: Linux
        version: Ubuntu 14.04 trusty

minions is running on 16.04 instead of 14.04

Metadata

Metadata

Assignees

Labels

bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions