source: docker/context/setup.sh@ 918:cfa4d89368fa

Last change on this file since 918:cfa4d89368fa was 918:cfa4d89368fa, checked in by István Váradi <ivaradi@…>, 4 years ago

Use Python 2.7.15

  • Property exe set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3set -e -u
4
5cdrive="${HOME}/.wine/drive_c"
6ctmpdir="${cdrive}/tmp"
7cpythondir="${cdrive}/Python27"
8cwinsysdir="${cdrive}/windows/system32"
9
10if test -f "${cpythondir}/python.exe"; then
11 echo "Image already configured, not doing anything!"
12 exit 1
13fi
14
15echo "Preparing image to be able to build MAVA Logger X for Windows"
16echo
17
18echo "Downloading and extracting the extra packages..."
19
20wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf -
21
22echo
23echo "Installing extra packages..."
24
25export WINEARCH=win32
26
27echo "exit" | wine cmd
28wine msiexec /i python-2.7.15.msi
29wine msiexec /i cefpython3-31.2.py2.7-win32.msi
30wine msiexec /i pygtk-all-in-one-2.24.1.win32-py2.7.msi
31wine msiexec /i pyuipc-0.4.win32-py2.7.msi
32wine msiexec /i xplra-0.2.win32.msi
33
34wine pywin32-217.win32-py2.7.exe
35wine py2exe-0.6.9.win32-py2.7.exe
36wine nsis-2.46-setup.exe
37
38mkdir "${ctmpdir}"
39cp chromedriver.exe "${ctmpdir}"
40
41tar xzf Python27.extra.tar.gz -C "${cpythondir}"
42
43echo
44echo "Removing extra packages..."
45rm -f *.msi *.exe Python27.extra.tar.gz python27.dll WINHTTP.dll
46echo
47echo "Done."
Note: See TracBrowser for help on using the repository browser.