Add script to build an OS X binary

This commit is contained in:
Ben Firshman 2014-02-03 16:02:35 -08:00
parent 75c430635b
commit 9550387e39
4 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/dist
/docs/_site
/docs/.git-gh-pages
fig.spec

View File

@ -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).

3
bin/fig Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env python
from fig.cli.main import main
main()

6
script/build-osx Executable file
View File

@ -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