source: docker/context/setup.sh@ 959:45c27c0c294f

python3
Last change on this file since 959:45c27c0c294f 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
RevLine 
[916]1#!/bin/bash
2
3set -e -u
4
5cdrive="${HOME}/.wine/drive_c"
[939]6cpythondir="${cdrive}/msys64/mingw32"
[916]7
[939]8if test -f "${cpythondir}/bin/python3.exe"; then
[916]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
[939]16export WINEARCH=win32
17
18echo "exit" | wine cmd
19
[916]20echo "Downloading and extracting the extra packages..."
21
[939]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
[916]26
27echo
28echo "Installing extra packages..."
29
30wine nsis-2.46-setup.exe
31
32echo
33echo "Removing extra packages..."
[939]34rm -f *.exe
[916]35echo
36echo "Done."
Note: See TracBrowser for help on using the repository browser.