Skip to content

Commit 6b06a7c

Browse files
committed
Hotfix for windows installation, to workaround pyinstaller warning bug
1 parent 1394fde commit 6b06a7c

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

bin/q

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#
2828
# Run with --help for command line details
2929
#
30-
q_version = "1.7.1"
30+
q_version = "1.7.4"
3131

3232
__all__ = [ 'QTextAsData' ]
3333

create-windows-setup-instructions

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ Instructions for creating a windows package for q:
55

66
The installation is based on a wine docker container.
77

8-
fetch all files from https://github.com/harelba/packages-for-q/tree/master/artifactory-for-packaging into dist/windows folder.
8+
mkdir -p dist/windows
9+
10+
pushd dist/windows
11+
12+
fetch all files from https://github.com/harelba/packages-for-q/tree/master/artifactory-for-packaging into that folder.
13+
14+
tar xvzf PyInstaller-2.1.tar.gz
15+
16+
Fix pyinstaller to work around a bug by running the following command (use gsed for osx or sed for linux):
17+
gsed -i '1587s/^.*$/ if tpl[2] in ["BINARY", "DATA"]:/' ./PyInstaller-2.1/PyInstaller/build.py
18+
19+
popd
920

10-
extract pyinstaller2.1 zip file inside the folder.
1121

1222
d=`pwd`
1323
cid1=`docker run -d -v ${d}:/q -e VNC_PASSWORD=newPW -p 5900:5900 suchja/x11server`
@@ -33,7 +43,7 @@ inside the docker container prompt:
3343

3444
ln -s /q "q:"
3545

36-
wine msiexec /i q:\\dist\\windows\\python-2.7.13.msi
46+
wine msiexec /i q:\\dist\\windows\\python-2.7.13.msi /q
3747

3848
wine q:\\dist\\windows\\pywin32-219.win32-py2.7.exe
3949

@@ -43,8 +53,9 @@ inside the docker container prompt:
4353

4454
cd /q/dist
4555

46-
wine q:\\dist\\windows\\nsis-2.46-setup.exe - install to c:\\q-build-environment\\nsis
56+
wine q:\\dist\\windows\\nsis-2.46-setup.exe - install to c:\q-build-environment\nsis
4757

58+
4859
wine c:\\python27\\python.exe c:\\q-build-environment\\PyInstaller-2.1\\pyinstaller.py -F --distpath=win_output --workpath=win_build q:\\bin\\q
4960

5061
### Don't forget to change the version in the command below:

0 commit comments

Comments
 (0)