Skip to content

Instantly share code, notes, and snippets.

@DanielCollins
Created June 4, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielCollins/7c655abdaece1c9f5f4f to your computer and use it in GitHub Desktop.
Save DanielCollins/7c655abdaece1c9f5f4f to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
xcode-select --install
brew unlink libxml2
brew unlink libxslt
brew install libxml2
brew install libxslt
brew link libxml2 --force
brew link libxslt --force
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2/libxml/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml
sudo env PATH=PATH:/Library/PostgreSQL/9.4/bin CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2 CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments STATIC_DEPS=true pip install -r requirements.txt --global-option=build_ext --global-option="-L/Library/PostgreSQL/9.4/lib" --global-option=build_ext --global-option="-I/Library/PostgreSQL/9.4/include"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment