python-wheel

ValueError "Expected version spec" when installing local wheel via pip

ValueError "Expected version spec" when installing local wheel via pip Question: I have a closed-source Python module I am developing and would like to share with people in my workplace. I have built a wheel via setup.py bdist_wheel with this setup.py file: #!/usr/bin/env python from setuptools import setup, find_packages setup(name=’mypkg’, version=’0.0.1′, description=’tools for work’, author=’tbhartman’, …

Total answers: 2

Wheel file installation

Wheel file installation Question: How do I install a .whl file? I have the wheel library, but I don’t know how to use it to install those files. I have the .whl file, but I don’t know how to run it. Asked By: balloneij || Source Answers: You normally use a tool like pip to …

Total answers: 3

How do I install a Python package with a .whl file?

How do I install a Python package with a .whl file? Question: I’m having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke’s Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations). However, only .whl files are available. http://www.lfd.uci.edu/~gohlke/pythonlibs/#jpype …

Total answers: 19

Why can I not create a wheel in python?

Why can I not create a wheel in python? Question: Here are the commands I am running: $ python 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’ $ pip –version pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4) …

Total answers: 8

Build a wheel/egg and all dependencies for a python project

Build a wheel/egg and all dependencies for a python project Question: In order to stage python project within our corporation I need to make an installable distribution. This should include: An egg or whl for my project An egg or whl for every dependency of the project (optionally) produce a requirements.txt file listing all the …

Total answers: 3

How do you add additional files to a wheel?

How do you add additional files to a wheel? Question: How do control what files are included in a wheel? It appears MANIFEST.in isn’t used by python setup.py bdist_wheel. UPDATE: I was wrong about the difference between installing from a source tarball vs a wheel. The source distribution includes files specified in MANIFEST.in, but the …

Total answers: 7

How can I make a Python Wheel from an existing native library?

How can I make a Python Wheel from an existing native library? Question: Suppose I have a native shared library (.dll or .so), built independently of any Python mechanism, and a Python module using ctypes to interface to the library. Is there a way that I can build those into a .whl package? If so, …

Total answers: 3

Control the pip version in virtualenv

Control the pip version in virtualenv Question: How do I control the version of pip which is used in a freshly created venv? By default, it uses a vendored pip distribution which may be out of date or unsuitable for whatever other reason. I want to be able to create a venv with a user-specified …

Total answers: 9

Latest 'pip' fails with "requires setuptools >= 0.8 for dist-info"

Latest 'pip' fails with "requires setuptools >= 0.8 for dist-info" Question: Using the recent (1.5) version of pip, I get an error when attempting to update several packages. For example, sudo pip install -U pytz results in failure with: Wheel installs require setuptools >= 0.8 for dist-info support. pip’s wheel support requires setuptools >= 0.8 …

Total answers: 2