Why is python setup.py saying invalid command ‘bdist_wheel’ on Travis CI?

My Python package has a 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 –upgrade But when I … Read more

Why use pip over easy_install?

A tweet reads: Don’t use easy_install, unless you like stabbing yourself in the face. Use pip. Why use pip over easy_install? Doesn’t the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing files, no setup.py) to PyPI, then both pip and easy_install will fail. Other than cosmetic … Read more

Installing specific package version with pip

I am trying to install version 1.2.2 of MySQL_python, using a fresh virtualenv created with the –no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the older version? I have tried: pip install MySQL_python==1.2.2 However, when installed, it still shows MySQL_python-1.2.3-py2.6.egg-info in the site packages. Is this a … Read more