Skip to main content

Yep, Its another build system

Project description

BuildMe 🛠️

Another build system. A simple command runner thats it.

What is BuildMe 🤔️

Well this pretty much sums it up.

xkcd comic

Why???

IDK. I saw this comic and decided that I want a build system of my own.

And,

  • Makefile's are shit.
  • Cmake is complicated
  • Meson requires two dependencies (Meson and Ninja)
  • Bazel, corporate BS

It does come with some feature.

  • It is just command runner (Does not give an f about the file or it's mod time)
    • v0.3.0 onwards, buildme does give an f about the file and it's mod times (times have changed)
  • It's just python. Anything that works on python works on buildme script.
    • you want a build script that has access to pandas, well you can now have it.

Docs 🧾️

  • Install buildme
pip3 install git+https://github.com/Adwaith-Rajesh/buildme.git
OR
pip3 install buildme
  • Create a buildme script

    The shebang is IMPORTANT (This thingy -> #!/bin/env buildme)

#!/bin/env buildme
from buildme import CommandRunner, target

cr = CommandRunner()

@target()
def foo(_, __):
    print('This is the foo target')


@target()
def bar(_, __):
    cr.run('echo this is from bar target')


@target(depends=['foo', 'bar'])
def all(_, __): pass
  • Make it executable
$ ./buildme foo
This is the foo target

$ ./buildme bar
================================================================================
[CMD]: echo this is from bar target
this is from bar target
================================================================================

$ ./buildme all
This is the foo target
================================================================================
[CMD]: echo this is from bar target
this is from bar target
================================================================================

More docs can be found here: Docs

Bye....

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

buildme-0.3.3.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

buildme-0.3.3-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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