mirror of https://github.com/docker/compose.git
Script to prepare OSX build environment
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
ef6555f084
commit
686c25d50f
|
@ -53,16 +53,20 @@ you can specify a test directory, file, module, class or method:
|
||||||
|
|
||||||
## Building binaries
|
## Building binaries
|
||||||
|
|
||||||
Linux:
|
`script/build-linux` will build the Linux binary inside a Docker container:
|
||||||
|
|
||||||
$ script/build-linux
|
$ script/build-linux
|
||||||
|
|
||||||
OS X:
|
`script/build-osx` will build the Mac OS X binary inside a virtualenv:
|
||||||
|
|
||||||
$ script/build-osx
|
$ script/build-osx
|
||||||
|
|
||||||
Note that this only works on Mountain Lion, not Mavericks, due to a
|
For official releases, you should build inside a Mountain Lion VM for proper
|
||||||
[bug in PyInstaller](http://www.pyinstaller.org/ticket/807).
|
compatibility. Run the this script first to prepare the environment before
|
||||||
|
building - it will use Homebrew to make sure Python is installed and
|
||||||
|
up-to-date.
|
||||||
|
|
||||||
|
$ script/prepare-osx
|
||||||
|
|
||||||
## Release process
|
## Release process
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
rm -rf venv
|
rm -rf venv
|
||||||
virtualenv venv
|
virtualenv -p /usr/local/bin/python venv
|
||||||
venv/bin/pip install -r requirements.txt
|
venv/bin/pip install -r requirements.txt
|
||||||
venv/bin/pip install -r requirements-dev.txt
|
venv/bin/pip install -r requirements-dev.txt
|
||||||
venv/bin/pip install .
|
venv/bin/pip install .
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
if !(which brew); then
|
||||||
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
brew update
|
||||||
|
|
||||||
|
if [ ! -f /usr/local/bin/python ]; then
|
||||||
|
brew install python
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$(brew outdated | grep python)" ]; then
|
||||||
|
brew upgrade python
|
||||||
|
fi
|
||||||
|
|
||||||
|
if !(which virtualenv); then
|
||||||
|
pip install virtualenv
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue