Is there a way, using setup.py
, to install a python package as a wheel/pip-style package (i.e. dist-info
) instead of the egg installation that setup.py
does by default (i.e. egg-info
)?
For example, if I have a python package with a setup.py
script and I run the following command, it will install the package as an egg.
> python setup.py install
However, I can build a wheel first, and then use pip to install that wheel as a wheel/dist-info type installation
> python setup.py bdist_wheel
> pip install ./dist/package-0.1-py2-none-any.whl
Is there a way to install the package as a wheel/dist-info installation directly from setup.py
? Or is the two-step process using both setuptools
and pip
necessary?