Skip to main content

A build system

Project description

build.py

build.py is a simple build system written in python.

Just create a build.py with the following content:

#!/usr/bin/python3
import build

build.main(__name__)


class Config(build.Config):
  # Put your options here
  # Defaults:
  # Default task
  default = 'build'
  # Languages to build (lang/<lang>.py)
  languages = []
  # Default output directory
  out = 'out'
  # Whether to preserve output paths (src/dir/file.py -> out/dir/file.py or out/file.py)
  preserve_paths = True
  # Enable builtin tasks (build etc.)
  builtins = True

# Or remove the class above and put your options here

Then call ./build.py -h
usage: build.py [-h] [-f FILE] [-o OUT] [task] [args [args ...]]

positional arguments:

Option Description
task The task that should be called
args The arguments for TASK

optional arguments:

Short Long Description
-h --help Show this help message and exit
-f FILE --file FILE The build configuration
-o OUT --out OUT The output directory

Project details


Download files

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

Files for build.py, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size build.py-1.0.0-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size build.py-1.0.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page