/python-make

A Makefile wrapper for python setup scripts

Primary LanguagePythonMIT LicenseMIT

python-make

Build Status

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

Installation

cd /path/to/your/project/
wget https://raw.githubusercontent.com/ltn100/python-make/master/Makefile
# run all the make commands!

Targets

python-make currently supports the following targets:

  • (no target - alias of build)
  • all (alias of build)
  • build
  • bdist
  • check (alias of test)
  • clean
  • install
  • rpm
  • sdist
  • test

Acknowledgements

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!