Kaynağa Gözat

Add script to build an OS X binary

Ben Firshman 11 yıl önce
ebeveyn
işleme
9550387e39
4 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 1 0
      .gitignore
  2. 6 0
      README.md
  3. 3 0
      bin/fig
  4. 6 0
      script/build-osx

+ 1 - 0
.gitignore

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

+ 6 - 0
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).
 

+ 3 - 0
bin/fig

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

+ 6 - 0
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