Skip to content

Commit

Permalink
Add script to build an OS X binary
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Mar 3, 2014
1 parent 75c4306 commit 9550387
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@
/dist /dist
/docs/_site /docs/_site
/docs/.git-gh-pages /docs/.git-gh-pages
fig.spec
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -52,4 +52,10 @@ Running the test suite


$ script/test $ 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).


3 changes: 3 additions & 0 deletions bin/fig
@@ -0,0 +1,3 @@
#!/usr/bin/env python
from fig.cli.main import main
main()
6 changes: 6 additions & 0 deletions 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

2 comments on commit 9550387

@bukzor
Copy link

@bukzor bukzor commented on 9550387 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should consider testing this under travis.

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

... except that travis is on mavericks =/

@bfirsh
Copy link
Author

@bfirsh bfirsh commented on 9550387 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.