mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
appveyor fix #2: try using pyinstaller
Support python 3.7 but not 3.8 yet - py2exe seems abandoned
This commit is contained in:
parent
135a1fed99
commit
c2b48687f0
2 changed files with 9 additions and 6 deletions
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- PYTHON: "C:\\Python38"
|
- PYTHON: "C:\\Python37"
|
||||||
# Shamelessly taken from https://github.com/plicease/Dist-Zilla-PluginBundle-Author-Plicease/blob/master/.appveyor.yml
|
# Shamelessly taken from https://github.com/plicease/Dist-Zilla-PluginBundle-Author-Plicease/blob/master/.appveyor.yml
|
||||||
# Thanks!
|
# Thanks!
|
||||||
install:
|
install:
|
||||||
- choco install strawberryperl
|
- choco install strawberryperl
|
||||||
- copy %PYTHON%\python.exe %PYTHON%\python3.exe
|
- copy %PYTHON%\python.exe %PYTHON%\python3.exe
|
||||||
- SET PATH=%PYTHON%;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
|
- SET PATH=%PYTHON%;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
|
||||||
- python3 -mpip install Pillow attrs configobj flake8 flake8-import-order py2exe pycotap pygame pysol-cards random2 setuptools six
|
- python3 -mpip install Pillow attrs configobj flake8 flake8-import-order pycotap pygame pyinstaller pyinstaller-setuptools pysol-cards random2 setuptools six
|
||||||
- perl -v
|
- perl -v
|
||||||
- copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
|
- copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
|
||||||
- SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
|
- SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
|
||||||
|
@ -30,7 +30,9 @@ test_script:
|
||||||
- gmake rules
|
- gmake rules
|
||||||
- gmake pot
|
- gmake pot
|
||||||
- gmake mo
|
- gmake mo
|
||||||
- python3 setup.py py2exe
|
- python3 setup.py build
|
||||||
|
- python3 setup.py install
|
||||||
|
- python3 setup.py pyinstaller
|
||||||
- appveyor DownloadFile https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/PySolFC-Cardsets-2.0/PySolFC-Cardsets-2.0.tar.bz2/download -FileName cardsets.tar.bz2
|
- appveyor DownloadFile https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/PySolFC-Cardsets-2.0/PySolFC-Cardsets-2.0.tar.bz2/download -FileName cardsets.tar.bz2
|
||||||
- tar xf cardsets.tar.bz2
|
- tar xf cardsets.tar.bz2
|
||||||
- xargs -ta scripts\cardsets_to_bundle -I file cp -rt dist\data\ PySolFC-Cardsets-2.0\file
|
- xargs -ta scripts\cardsets_to_bundle -I file cp -rt dist\data\ PySolFC-Cardsets-2.0\file
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -6,10 +6,11 @@ import os
|
||||||
from pysollib.settings import PACKAGE_URL
|
from pysollib.settings import PACKAGE_URL
|
||||||
from pysollib.settings import VERSION
|
from pysollib.settings import VERSION
|
||||||
|
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
import py2exe # noqa: F401
|
# import py2exe # noqa: F401
|
||||||
|
from pyinstaller_setuptools import setup
|
||||||
|
else:
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
def get_data_files(source, destination):
|
def get_data_files(source, destination):
|
||||||
|
|
Loading…
Add table
Reference in a new issue