source: docker/context/setup.sh@ 966:c7cb5b3d2c47

python3
Last change on this file since 966:c7cb5b3d2c47 was 939:de728888b85e, checked in by István Váradi <ivaradi@…>, 6 years ago

The Docker/Wine-based build infrastructure works for Python 3 (re #347)

  • Property exe set to *
File size: 823 bytes
Line 
1#!/bin/bash
2
3set -e -u
4
5cdrive="${HOME}/.wine/drive_c"
6cpythondir="${cdrive}/msys64/mingw32"
7
8if test -f "${cpythondir}/bin/python3.exe"; then
9 echo "Image already configured, not doing anything!"
10 exit 1
11fi
12
13echo "Preparing image to be able to build MAVA Logger X for Windows"
14echo
15
16export WINEARCH=win32
17
18echo "exit" | wine cmd
19
20echo "Downloading and extracting the extra packages..."
21
22wget -O - mlx.varadiistvan.hu/update/msys64.tar.gz | tar xzf - -C "${cdrive}"
23wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf - nsis-2.46-setup.exe pyuipc-cpython-37m.dll xplra.py
24
25mv pyuipc-cpython-37m.dll xplra.py /root/.wine/drive_c/msys64/mingw32/lib/python3.7/site-packages
26
27echo
28echo "Installing extra packages..."
29
30wine nsis-2.46-setup.exe
31
32echo
33echo "Removing extra packages..."
34rm -f *.exe
35echo
36echo "Done."
Note: See TracBrowser for help on using the repository browser.