diff --git a/.gitignore b/.gitignore index bdd3ac142..9a8c8325f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /dist /docs/_site /docs/.git-gh-pages +fig.spec diff --git a/README.md b/README.md index 1918d9b39..de4bbc272 100644 --- a/README.md +++ b/README.md @@ -52,4 +52,10 @@ Running the test suite $ script/test +Building OS X binaries +--------------------- + + $ script/build-osx + +Note that this only works on Mountain Lion, not Mavericks, due to a [bug in PyInstaller](http://www.pyinstaller.org/ticket/807). diff --git a/bin/fig b/bin/fig new file mode 100755 index 000000000..550a5e243 --- /dev/null +++ b/bin/fig @@ -0,0 +1,3 @@ +#!/usr/bin/env python +from fig.cli.main import main +main() diff --git a/script/build-osx b/script/build-osx new file mode 100755 index 000000000..ee011d1b2 --- /dev/null +++ b/script/build-osx @@ -0,0 +1,6 @@ +#!/bin/bash +set -ex +virtualenv venv +venv/bin/pip install pyinstaller==2.1 +venv/bin/pip install . +venv/bin/pyinstaller -F bin/fig