Skip to content

Redistribution

Tal Liron edited this page Jan 5, 2018 · 1 revision

The requirements for running a Rōnin build script are not too bad: you need the "ronin" Python package and the "ninja" executable to be installed.

However, you may prefer to eliminate these requirements by redistributing both "ronin" and "ninja" with your project. This will also guarantee that a tested, specific version of both of these is used.

To do this, run the redistribute.sh script included in the Rōnin distribution on GitHub. It creates a "ronin" executable for you and copies your existing "ninja" executable to a directory. You can provide the script with a directory as an argument, otherwise it will use the current directory.

You can then simply run this in the directory (assuming your build script is build.py):

./ronin build.py

Behind the scenes, pex is used to package Rōnin and its dependencies into an executable file.

Clone this wiki locally