Merge pull request #47 from lbryio/fix-osx-build
Fix OSX build issue with openssl
This commit is contained in:
commit
cf4d78a24c
3 changed files with 13 additions and 2 deletions
|
@ -15,8 +15,7 @@ matrix:
|
||||||
osx_image: xcode7.3
|
osx_image: xcode7.3
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade && brew install python --framework; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./packaging/travis/setup_osx.sh; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gmp; fi
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./packaging/travis/install_dependencies_and_run_tests.sh; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./packaging/travis/install_dependencies_and_run_tests.sh; fi
|
||||||
|
|
|
@ -29,6 +29,8 @@ fi
|
||||||
NAME=`python setup.py --name`
|
NAME=`python setup.py --name`
|
||||||
VERSION=`python setup.py -V`
|
VERSION=`python setup.py -V`
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
# not totally sure if pyOpenSSl is needed (JIE)
|
||||||
|
pip install pyOpenSSL
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
echo "Building URI Handler"
|
echo "Building URI Handler"
|
||||||
|
|
10
packaging/travis/setup_osx.sh
Executable file
10
packaging/travis/setup_osx.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
wget https://www.python.org/ftp/python/2.7.11/python-2.7.11-macosx10.6.pkg
|
||||||
|
sudo installer -pkg python-2.7.11-macosx10.6.pkg -target /
|
||||||
|
pip install -U pip
|
||||||
|
brew install gmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue