patternpythonCritical
Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?
Viewed 0 times
whycommandpythonsetupbdist_wheelinvalidsayingtravis
Problem
My Python package has a
But when I do the same on a Travis CI Trusty Beta VM:
I get:
This Why can I not create a wheel in python? is related but note I am installing wheel and upgrading setuptools.
setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this:sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
sudo -H pip install setuptools wheel virtualenv --upgradeBut when I do the same on a Travis CI Trusty Beta VM:
- sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken
- curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7
- sudo -H pip install setuptools wheel virtualenv --upgradeI get:
python2.7 setup.py bdist_wheel
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'This Why can I not create a wheel in python? is related but note I am installing wheel and upgrading setuptools.
Solution
Had to install the
then
worked without issues.
wheel package. Everything was up to date but still giving the error.pip install wheelthen
python setup.py bdist_wheelworked without issues.
Code Snippets
pip install wheelpython setup.py bdist_wheelContext
Stack Overflow Q#34819221, score: 1522
Revisions (0)
No revisions yet.