A simple python Makefile wrapper to map make
*
utility targets to python setup.py commands.
With the Makefile in the same directory as your setup.py file, you can build/test/install/distribute your python packages in the following way:
make -> python setup.py build
make check -> python setup.py test
make install -> python setup.py install
make clean -> python setup.py clean
make sdist -> python setup.py sdist
cd /path/to/your/project/
wget https://raw.githubusercontent.com/ltn100/python-make/master/Makefile
# run all the make commands!
python-make currently supports the following targets:
build
)all
(alias ofbuild
)build
bdist
check
(alias oftest
)clean
install
rpm
sdist
test
This project was inspired by various works, not least C. Titus Brown and Alexandra Pawlik's guide to Python packages and installs, and Eric Blake, a contributor to the libvert-python project, which uses a similar shim.
* I am aware that GNU make is not the only flavour of make!