Use a lib folder for pyotherside

This commit is contained in:
Dag Heyman 2018-02-09 08:46:34 +01:00
parent 7d69cbc395
commit 4d36c59bbb
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338
2 changed files with 8 additions and 4 deletions

View File

@ -37,10 +37,12 @@ before_install:
then
export MACOSX_DEPLOYMENT_TARGET=10.9
brew update
wget https://github.com/thp/pyotherside/archive/$PYOTHERSIDE_VERSION.tar.gz
wget https://github.com/thp/pyotherside/archive/$PYOTHERSIDE_VERSION.tar.gz -P ./lib
cd lib
tar -xzvf $PYOTHERSIDE_VERSION.tar.gz
# Patch PyOtherSide to not be built with debug output
echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> pyotherside-$PYOTHERSIDE_VERSION/src/src.pro
cd ..
fi
install:
@ -57,11 +59,11 @@ install:
env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install $PY_VERSION
pyenv global system $PY_VERSION
# Build and install PyOtherside
cd pyotherside-$PYOTHERSIDE_VERSION
cd lib/pyotherside-$PYOTHERSIDE_VERSION
qmake
make
sudo make install
cd ..
cd ../..
fi
- pip install --upgrade pip
# Install linting tools

View File

@ -33,7 +33,9 @@ install:
# Build and install PyOtherSide
# Reference: https://pyotherside.readthedocs.io/en/latest/#building-for-windows
- ps: wget "https://github.com/thp/pyotherside/archive/$env:PYOTHERSIDE_VERSION.zip" -OutFile "pyotherside-$env:PYOTHERSIDE_VERSION.zip"
- mkdir lib
- ps: wget "https://github.com/thp/pyotherside/archive/$env:PYOTHERSIDE_VERSION.zip" -OutFile ".\lib\pyotherside-$env:PYOTHERSIDE_VERSION.zip"
- cd .\lib
- 7z x pyotherside-%PYOTHERSIDE_VERSION%.zip
- cd .\pyotherside-%PYOTHERSIDE_VERSION%
- ps: (Get-Content .\src\qmldir).replace('pyothersideplugin', 'pyothersideplugin1') | Set-Content .\src\qmldir