Skip to main content

A build system library

Project description

🥧pybaker🥧

Pybaker is an easy to use flexible build system, provided as a python library. Born from my frustrations with existing build systems.

The library provides a Builder object and also allows you to create your own compiler, linker, dependency scanner and language configuration. It comes with a few Premade configurations but I would recomend using the clang configuration.

Install it from pip.

Example build script:

# If clang is installed this will just work.

from pybaker import *


def build():
    builder = Builder("test", build_type=BuildType.DEBUG)

    # To see how to implement a language configuration check out 
    # the Languages class.
    builder.add_language(Languages.C)

    builder.add_path("src")

    if builder.build():
        # Do something on failure...
        pass

    if builder.link(["-lUser32.lib", "-lGdi32.lib"]):
        # Do something on failure...
        pass


if __name__ == "__main__":
    build()

To run it you simply call from your base directory

python build.py 

This will create a new directory where it will dump its private files. A well as the build results.

The MIT License (MIT)

Copyright © 2022 oatslaboats

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

pybaker-1.0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

pybaker-1.0.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file pybaker-1.0.2.tar.gz.

File metadata

  • Download URL: pybaker-1.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pybaker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f2f041b0b797f0eb4b9edb36fc4090919962404689ee00394274c1bfdfdc406c
MD5 7a947c06451a329f1de069fe772a6009
BLAKE2b-256 aded05a10686214dc63a2ffcdeb13561b943e40508ba1dbef8bb24650a9e13f2

See more details on using hashes here.

File details

Details for the file pybaker-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pybaker-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pybaker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2190c8d6dbe91ded344601d6a8b3ffb6954ea1705aafbdc546baf6ae3c78ce62
MD5 bfa7c594d45df8197e42863a1f8a5017
BLAKE2b-256 d14ea1e492f27ea3eb19bd1c7e278343695ffc0fa337e2620ebc9efee2e11647

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