skip to navigation
skip to content

cupcake 2017.0.1

build system like Make

About

Cupcake is a very simple build system for your projects. Cupcake is similar to the Rake project and Make project but much easier to use than both of them. Cupcake was written in Python and suports both Python 2 and Python 3.

Usage

Create a file called “Cupcake” with no file extension in your project directory. Below is a list of valid syntax.

File: Cupcake
Syntax:

build    takes a platform-independent command as an argument
println  print string to screen
nix      execute shell command for unix systems
win      execute shell command for windows systems
"@"      single line comment, this will throw an error if used on same line as any of the commands above

Then simply run the command below to compile your project.

bake

Done!

Example:

Say you have a file called “myproject.c” and you want to compile it. This is how you would go about it. Create a file in the same directory as your “myproject.c” file called “Cupcake” and put the following in it.

@ some comment
println Compiling project...
build gcc -o myproject myproject.c
println done...

To run the compilation, simply type

bake

in the same directory as “myproject.c”.

Examples

There are “examples” in the examples directory. The examples demonstrate how to use Cupcake for different languages.

C

Example for C:

$ cd examples/c_cupcake
$ bake

C++

Example for C++:

$ cd examples/cpp_cupcake
$ bake

Python

Example for Python:

$ cd examples/python_cupcake
$ bake

Ruby

Example for Ruby:

$ cd examples/ruby_cupcake
$ bake

Bash

Example for Bash:

$ cd examples/bash_cupcake
$ bake

Installation

Required Programs

The following programs should be installed on your system for Cupcake to work correctly:

  • Python 3.4 or up
  • Git 2.7 or up
  • Pip 8.1 or up
  • Wheel current version
  • Setuptools 32.0 or up
  • Cupcake 2017.x.x

Installation from PyPi

If you do not have Cupcake installed:

$ pip install cupcake

Building

1.) Get the source

$ git clone https://github.com/cocodevienne/cupcake

2.) Build the source

$ cd cupcake/source
$ python setup.py bdist_wheel
$ python setup.py sdist

3.) Test your build

$ cd dist
$ pip install <wheel name>
$ bake

If you have Cupcake installed already, execute these commands:

$ git clone https://github.com/cocodevienne/cupcake
$ cd cupcake
$ bake

Changelog

Version 2017.0:
    - initial release
    - upload to GitHub

Licensing

This software is licensed under the DVF GPL.

 
File Type Py Version Uploaded on Size
cupcake-2017.0.1-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-06-10 6KB
cupcake-2017.0.1.tar.gz (md5) Source 2017-06-23 5KB