Skip to main content
Help us improve Python packaging – donate today!

Add build prerequisites to your python project.

Project Description

Python Maketools

Customisable build targets for python.

This module is part of the flask-boilerplate project.

- `flask-boilerplate <>`_
- `flask-boilerplate-buildutils <>`_
- `flask-boilerplate-utils <>`_
- `maketools <>`_

Basic Usage

Define a target by subclassing the Target class

.. code-block:: python

from maketools import Target

class MyTarget(Target):
sh_build_commands = ('ls -la',
'mkdir test',
'echo {VARIABLE}')

depends = ('requirements.txt')
output = 'myfile.txt'

# And when you're ready to use it
top_target = MyTarget(){'VARIABLE': 'HELLO'})

For further documentation of the Target class, see `readthedocs <>`_. It has a few more options for extendability.

Advanced Target

.. code-block:: python

from maketools import Target

class MyOtherTarget(Target):
# Define another target just to use it as a dependency.

class MyTarget(Target):
sh_build_commands = ('ls -la',
'mkdir test')
depends = ('requirements.txt')
output = 'myfile.txt'
echo = True
always_build = False
depends = (MyOtherTarget, 'requirements.txt')

def py_build_commands()
print ("Do something in python")

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
maketools-0.1.4.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Dec 23, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page