From 9550387e39012644e4f19a724225c17fb85a2bdf Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 3 Feb 2014 16:02:35 -0800 Subject: [PATCH] Add script to build an OS X binary --- .gitignore | 1 + README.md | 6 ++++++ bin/fig | 3 +++ script/build-osx | 6 ++++++ 4 files changed, 16 insertions(+) create mode 100755 bin/fig create mode 100755 script/build-osx 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