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?
pip install dir/wheredircontainssetup.py?pipwill install from a directory containing asetup.py, but it just callssetup.py install, so it generates the same egg install.pipwill run thebdist_wheelcommand, then install the package from the built wheel file. At least this is the behaviour I observe with currentpip 9.0.1.pipwill absolutely create an egg and install it. I don't believepipwill install from an egg binary distribution file, since the egg format doesn't contain enough metadata to know if that particular bdist will work for that specific python installation. Which is part of the reason the wheel format was created.pip 9.0.1and it's behaving differently for me. I'm on windows if that matters.