Skip to content

Commit

Permalink
Modified some scripts - trying to get PyInstaller to see Pyside, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 18, 2019
1 parent 2a78bd4 commit dd15cc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ steps:
system_profiler SPDisplaysDataType | grep Resolution # Check display dimensions using OS tools
sudo python ci/screen.py # Check display dimensions as seen by PySide
sudo python setup.py -q install
#sudo pytest -v --junitxml=junit/test-results.xml
#sudo mv examples/data/14061619.png examples/data/14061619_mac.png
sudo pytest -v --junitxml=junit/test-results.xml
sudo mv examples/data/14061619.png examples/data/14061619_mac.png
sudo python -m PyInstaller runsharp/SHARPpy-osx.spec --noconsole --onefile --log-level DEBUG
sudo chmod 777 dist/SHARPpy.app
ls -lh dist
Expand All @@ -86,8 +86,8 @@ steps:
python ci/screen.py
python setup.py -q install --user
#pytest -v --junitxml=junit/test-results.xml
#move examples\\data\\14061619.png examples\\data\\14061619_win.png
pytest -v --junitxml=junit/test-results.xml
move examples\\data\\14061619.png examples\\data\\14061619_win.png
python -m PyInstaller runsharp/SHARPpy-win7-64.spec --log-level DEBUG
displayName: "Installing code and running tests (Windows)"
condition: eq( variables['Agent.OS'], 'Windows_NT')
Expand Down
6 changes: 1 addition & 5 deletions runsharp/SHARPpy-linux-redhat5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ datasources = glob.glob("../datasources/*.csv") + glob.glob("../datasources/*.xm

for hail in sars_hail:
a.datas += [("sharppy/databases/sars/hail/" + hail.split("/")[-1], hail, "DATA")]

for supr in sars_supr:
a.datas += [("sharppy/databases/sars/supercell/" + supr.split("/")[-1], supr, "DATA")]

Expand All @@ -59,11 +60,6 @@ exe = EXE(pyz,
upx=True,
console=False )


# Revert the _version.py file to its original version using git
import subprocess
subprocess.Popen(['git', 'checkout', '--', ver_fname])

# Revert the _version.py file to its original version using git
import subprocess
subprocess.Popen(['git', 'checkout', '--', ver_fname])
Expand Down
2 changes: 2 additions & 0 deletions runsharp/SHARPpy-osx.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- mode: python -*-
# Compile using `pyinstaller SHARPpy-osx.spec --onefile --noconsole`
import sys
sys.path.append('./')

import glob
import sharppy
Expand Down
3 changes: 3 additions & 0 deletions runsharp/SHARPpy-win7-64.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# -*- mode: python -*-
#import sys
sys.path.append('./')

import glob
import sharppy
from sharppy._version import get_versions
Expand Down

0 comments on commit dd15cc5

Please sign in to comment.