#python #rub #buildable

python_rub

Rust Builder for Python

3 releases

Uses old Rust 2015

0.0.3 Jan 25, 2015
0.0.2 Jan 15, 2015
0.0.1 Jan 14, 2015

#8 in #buildable

MIT license

18KB
370 lines

python-rub

python Rust Builder

Status

Build Status


lib.rs:

Rust Builder for Python.

This crate is intended for use with rub.

If you don't have rub installed, visit https://github.com/rust-builder/rub for installation instructions.

Rub Options

 $ rub python --help
 python - Rust Builder

 Usage:
     rub rust [options] [<lifecycle>...]
     rub rust (-h | --help)
     rub rust --version

 Options:
     -d --dir <dir>        Set the projects directory.
     -b --branch <branch>  Set the build branch. [default: master]
     -t --enable-test      Enable tests.
     -p --prefix <prefix>  Set the installation prefix.
     -u --url <url>        Set the SCM URL.
     -h --help             Show this usage.
     --target <target>     Target triples to build.
     --force-configure     Force the configure lifecycle to run.
     --version             Show python-rub version.
 

Examples

use buildable::Buildable;
use python_rub::PythonRub;

// To run lifecycle methods outside of rub...
let mut rr = PythonRub::new();
let b = Buildable::new(&mut rr, &vec!["rub".to_string(),
                                      "python".to_string(),
                                      "--version".to_string()]);
assert_eq!(Ok(0), b.version());

Dependencies

~3.5–5.5MB
~99K SLoC