pull/181/head
Lex Neva 2018-06-03 13:00:23 -04:00
rodzic fd6ae02fb3
commit f8141ed7df
1 zmienionych plików z 9 dodań i 12 usunięć

Wyświetl plik

@ -144,7 +144,6 @@ install:
elif [ -n "$LINT" ]; then elif [ -n "$LINT" ]; then
pip install flake8 pip install flake8
fi fi
set +e
before_script: before_script:
- "echo LINT: $LINT BUILD: $BUILD" - "echo LINT: $LINT BUILD: $BUILD"
script: script:
@ -162,18 +161,16 @@ script:
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude=embroidermodder flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude=embroidermodder
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=embroidermodder flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=embroidermodder
elif [ "$BUILD" = "linux" -o "$BUILD" = "osx" ]; then elif [ "$BUILD" = "linux" -o "$BUILD" = "osx" ]; then
( pushd embroidermodder/experimental
set -x qmake swigpython.pro
cd embroidermodder/experimental make
qmake swigpython.pro if [ "$BUILD" = "osx" ]; then
make ln -s _libembroidery.dylib python/binding/_libembroidery.so
if [ "$BUILD" = "osx" ]; then install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /usr/local/opt/python2/Frameworks/Python.framework/Versions/2.7/Python python/binding/_libembroidery.dylib
ln -s _libembroidery.dylib python/binding/_libembroidery.so fi
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /usr/local/opt/python2/Frameworks/Python.framework/Versions/2.7/Python python/binding/_libembroidery.dylib set +x
fi
set +x
)
make dist make dist
popd
elif [ "$BUILD" = "windows" ]; then elif [ "$BUILD" = "windows" ]; then
# work around some bug... pyinstaller? shapely? not sure. # work around some bug... pyinstaller? shapely? not sure.
cp $(winepath 'C:\Python\lib\site-packages\shapely\DLLs\geos_c.dll') $(winepath 'C:\Python\lib\site-packages\shapely\DLLs\geos.dll') cp $(winepath 'C:\Python\lib\site-packages\shapely\DLLs\geos_c.dll') $(winepath 'C:\Python\lib\site-packages\shapely\DLLs\geos.dll')