Skip to content

Commit

Permalink
Merge branch 'windows-wheels' into feature/port-to-tavis-yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stuaxo authored Aug 20, 2020
2 parents 76a3b97 + 024b296 commit 707b4bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,13 @@ script:
- python setup.py install --root=_root_setup
- if [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]] ; then python -m pip install .; fi
- python -m sphinx -W -a -E -b html -n docs docs/_build


deploy:
if: TRAVIS_OS_NAME = windows
provider: releases
file_glob: true
api_key: $GITHUBOAUTHTOKEN
file: dist/*
skip_cleanup: true
draft: true
28 changes: 28 additions & 0 deletions .travis/runPycairo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#download cairo
curl -L https://github.com/preshing/cairo-windows/releases/download/$CAIRO_VERSION/cairo-windows-$CAIRO_VERSION.zip -o cairocomplied.zip
7z x cairocomplied.zip
mv cairo-windows-$CAIRO_VERSION cairocomplied
curl -L https://aka.ms/nugetclidl -o nuget.exe
#x64 python begins here
export INCLUDE="$PWD/cairocomplied/include/"
export LIB="$PWD/cairocomplied/lib/x64/"
cp cairocomplied/lib/x64/cairo.dll cairo/cairo.dll
./nuget install python -Version $PYVER -OutputDirectory python
./python/python.$PYVER/tools/python.exe -m pip install --upgrade pip
./python/python.$PYVER/tools/python.exe -m pip install --upgrade wheel
./python/python.$PYVER/tools/python.exe -m pip install --upgrade setuptools
./python/python.$PYVER/tools/python.exe -m pip install pytest
./python/python.$PYVER/tools/python.exe -m pip install --upgrade mypy || true
./python/python.$PYVER/tools/python.exe setup.py bdist_wheel
rm cairo/cairo.dll
#x86 python begins here
./nuget install pythonx86 -Version $PYVER -OutputDirectory pythonx86
cp cairocomplied/lib/x86/cairo.dll cairo/cairo.dll
./pythonx86/pythonx86.$PYVER/tools/python.exe -m pip install --upgrade pip
./pythonx86/pythonx86.$PYVER/tools/python.exe -m pip install --upgrade wheel
./pythonx86/pythonx86.$PYVER/tools/python.exe -m pip install --upgrade setuptools
./pythonx86/pythonx86.$PYVER/tools/python.exe -m pip install pytest
./pythonx86/pythonx86.$PYVER/tools/python.exe -m pip install --upgrade mypy || true
export INCLUDE="$PWD/cairocomplied/include/"
export LIB="$PWD/cairocomplied/lib/x86/"
./pythonx86/pythonx86.$PYVER/tools/python.exe setup.py bdist_wheel

0 comments on commit 707b4bd

Please sign in to comment.