source: docker/msys/setup.sh@ 922:fcbc41076194

python3
Last change on this file since 922:fcbc41076194 was 920:42b14124051b, checked in by István Váradi <ivaradi@…>, 6 years ago

Win 10 Docker image for building the new Python3-based distribution

  • Property exe set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2
3set -e -u
4
5pacman -S --noconfirm mc patch unzip mingw-w64-i686-python3 mingw-w64-i686-python3-setuptools mingw-w64-i686-gcc mingw-w64-i686-gtk3 mingw-w64-i686-python3-lxml mingw-w64-i686-cmake mingw-w64-i686-make mingw-w64-i686-python3-pip mingw-w64-i686-python3-pillow mingw-w64-i686-python3-gobject mingw-w64-i686-python3-cffi
6pacman -Scc --noconfirm
7
8pip3 install jsonrpclib-pelix
9
10echo "Building PyWin32"
11
12cd /build
13
14wget -O - https://github.com/mhammond/pywin32/archive/b224.tar.gz | gzip -dc | tar xf -
15cd pywin32-b224
16patch -p1 < ../pywin32git.patch
17patch -p1 < ../pywin32.patch
18python3 setup.py build
19python3 setup.py install
20
21echo "Building CEFPython"
22
23cd /build
24
25wget -O - http://opensource.spotify.com/cefbuilds/cef_binary_3.3359.1774.gd49d25f_windows32.tar.bz2 | bzip2 -dc | tar xf -
26cd cef_binary_3.3359.1774.gd49d25f_windows32
27
28patch -p1 < ../cef_binary_3.3359.1774.gd49d25f_windows32.patch
29mv tests tests.orig
30
31mkdir build
32cd build
33/usr/bin/env PATH=/mingw32/bin:/usr/local/bin::/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0 cmake -G "MinGW Makefiles" ..
34cd libcef_dll_wrapper
35mingw32-make
36
37cd /build
38
39wget -O - https://github.com/cztomczak/cefpython/archive/v66.0.tar.gz | gzip -dc | tar xf -
40cd cefpython-66.0
41
42patch -p1 < ../cefpython-66.0.patch
43
44mkdir -p build
45cd build
46
47wget https://github.com/cztomczak/cefpython/releases/download/v66-upstream/cef66_3.3359.1774.gd49d25f_win32.zip
48unzip cef66_3.3359.1774.gd49d25f_win32.zip
49rm cef66_3.3359.1774.gd49d25f_win32.zip
50
51cp /build/cef_binary_3.3359.1774.gd49d25f_windows32/build/libcef_dll_wrapper/libcef_dll_wrapper.a cef66_3.3359.1774.gd49d25f_win32/lib
52
53pip3 install -r ../tools/requirements.txt
54
55python3 ../tools/build.py --no-run-tests --no-run-examples 66.0 || true
56python3 ../tools/build.py --no-run-tests --no-run-examples 66.0
57
58echo "Building Py2EXE"
59
60cd /build
61
62wget -O - https://github.com/albertosottile/py2exe/archive/v0.9.3.0.tar.gz | gzip -dc | tar xf -
63cd py2exe-0.9.3.0
64patch -p1 < ../py2exe.patch
65python3 setup.py build
66python3 setup.py install
67
68cd /
69rm -rf /build
Note: See TracBrowser for help on using the repository browser.