Permalink
Browse files

Add script to build an OS X binary

  • Loading branch information...
1 parent 75c4306 commit 9550387e39012644e4f19a724225c17fb85a2bdf @bfirsh bfirsh committed Feb 4, 2014
Showing with 16 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 README.md
  3. +3 −0 bin/fig
  4. +6 −0 script/build-osx
View
@@ -4,3 +4,4 @@
/dist
/docs/_site
/docs/.git-gh-pages
+fig.spec
View
@@ -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).
View
@@ -0,0 +1,3 @@
+#!/usr/bin/env python
+from fig.cli.main import main
+main()
View
@@ -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

2 comments on commit 9550387

Should consider testing this under travis.

http://docs.travis-ci.com/user/osx-ci-environment/

... except that travis is on mavericks =/

Collaborator

bfirsh replied Aug 5, 2014

Yep... tried but it's the wrong version. :(

Unfortunately there aren't many good on-demand OS X VMs available. Sauce Labs is pretty close (they have Mountain Lion) but have no way of running arbitrary commands.

Please sign in to comment.