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.

Source Distribution

build.py-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

build.py-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file build.py-1.0.0.tar.gz.

File metadata

  • Download URL: build.py-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for build.py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 abcf92903cc8899a0fc5fee21f40d934eecf5e3bab97db784818d151d926f4f4
MD5 774d8a39f87ca7aeb2e267d27a8a8b4a
BLAKE2b-256 72c889e8234c991b92c2fb67471f004f8cd52abce43824f1b2c12b3c7abe431a

See more details on using hashes here.

File details

Details for the file build.py-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for build.py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 003dd55800205534e661db4f4fed47373b29c21ef01ad5e6b3f6cd781d2272d1
MD5 13ae439c4274717d89058b914e32bb75
BLAKE2b-256 cd40b943c6078c0c702ca1e0f8bd64bd33282d1f0a40117fa6ec3fae8d249651

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page