Skip to main content

A clean, pythonic, DAG-based C/C++ build system.

Project description

Zero - Super Easy Build System

Zero is a C/C++ build system designed to be as easy as possible to use, without lacking any features. Written in python!

The only reason Zero exists is because I hate CMake syntax.

Usage

First, create a zero.py file in your project root and import zero

from zero import *

Create a Build object named build.

build = Build()

Configure the build object by specifying the compiler and the build directory.

build.compiler = "gcc"
build.directory = "build" # or Path("build") also works!

To create an executable, create an Executable object! Specify the sources an arguments!

main = Executable()
main.source = Source(
	"src/main.c",
	"src/utils.c" # or Path("src") / "utils.c" also works!
)
main.arguments = "-Wall", "-O3"

And you are done! Yes that's all. Run the zero cli tool to make your executable.

zero make

A binary named main can now be found at build/bin/main

Installation

Zero is still in its infant stage. Proper installation does not exist. To still install, run:

git clone https://github.com/kxmtkw/Zero.git zero
cd zero
pip install --break-system-packages -e .

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

zero_build-0.1.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

zero_build-0.1.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file zero_build-0.1.1.tar.gz.

File metadata

  • Download URL: zero_build-0.1.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zero_build-0.1.1.tar.gz
Algorithm Hash digest
SHA256 40224a7e453f3b044b826d6342a2c5b809ba699f2dfa88a30e6ef7e3fcd599c5
MD5 bf88614ac1660089badb330fb7d716c1
BLAKE2b-256 e9b933cc143c854c8c55dbe9655e1543806213577c33c442d8011b4b5af12977

See more details on using hashes here.

File details

Details for the file zero_build-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zero_build-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zero_build-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 825573c5d4cee71d87a49ea700b9d9d43fd5bab9f0f5dd11725d2d2dbca18ebb
MD5 ab7bac86ea20632b6b6b041673f44d49
BLAKE2b-256 516d72d0756bba6270b697a2dadb0825f331b3551dbea628a62d95017e464a79

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