Skip to content

ellbur/scooter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Scooter

Scooter is a Python library for building code. It is not so much a make-like utility as a collection of handy functions, which aim to make an actual build tool unnecessary.

Sample build file

from scooter import *
from scooter.llvm import *

here = main_file(__file__)

builddir = here / 'build'
srcdir = here / 'src'

sources = srcdir//'**'//'*.cpp' + srcdir//'**'//'*.c'
bin = builddir / 'main'

build = BuildHere(verbose=False).watching(srcdir)

link = '/usr/lib/llvm-3.0/bin/llvm-link'
opt = '/usr/lib/llvm-3.0/bin/opt'
llc = '/usr/lib/llvm-3.0/bin/llc'

def main():
    llvm_build_to_c(build, sources, builddir/'all.c',
        link=link, opt=opt, llc=llc)
    
do_build(main)

Why "Scooter"?

$ apt-cache search scooter | wc -l
0

About

Python build library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages