~jfb-tempo-consulting/unifield-wm/packaging_py27_US-3833

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh

# Prefer c:\Python27 over the Python stuff from Cygwin
PATH=/cygdrive/c/Python27/Scripts:/cygdrive/c/Python27:$PATH
export PATH

set -x -e

# The VC Redist for VC2008, required for Python on the
# WinXP builder machine.
chmod +x lib/vcredist_x86.exe
./lib/vcredist_x86.exe /q

# Python
rm -f python-2.7.13.msi
wget https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi
msiexec.exe /qn /i python-2.7.13.msi
rm -f python-2.7.13.msi

# PIP
rm -f get-pip.py
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
rm -f get-pip.py

# Now install the pre-reqs to being able to load UF's setup.py
# These should be listed in the setup_requires, see:
# https://pip.readthedocs.io/en/1.4.1/cookbook.html
pip install py2exe_py2==0.6.9 pytz==2017.2

# Install the packages which are not installable via "pip install"
# and instead have to come from a .whl file.
pip install lib/whl/*
for i in lib/exe/*
do
	easy_install $i
done

rm -rf lib

wget https://downloads.sourceforge.net/project/nsis/NSIS%203/3.01/nsis-3.01.zip
unzip -o nsis-3.01.zip
chmod +x nsis-3.01/*.exe nsis-3.01/Bin/*
rm -f nsis-3.01.zip

mkdir s
cd s
wget http://nsis.sourceforge.net/mediawiki/images/c/c9/NSIS_Simple_Service_Plugin_1.30.zip
unzip NSIS_Simple_Service_Plugin_1.30.zip
mv SimpleSC.dll ../nsis-3.01/Plugins/x86-ansi/
cd ..
rm -rf s

rm uf-prereq

# Now shut down the server
shutdown -s -t 0