@@ -28,7 +28,7 @@ function do_python_build {
28
28
check_var $py_ver
29
29
local soabi_flags=$2
30
30
check_var $soabi_flags
31
- mkdir -p /opt/${py_ver}${soabi_flags} /lib
31
+ mkdir -p /opt/python/ ${py_ver}${soabi_flags} /lib
32
32
if [ $( lex_pyver $py_ver ) -lt $( lex_pyver 3.3) ]; then
33
33
if [ $soabi_flags = " mu" ]; then
34
34
local unicode_flags=" --enable-unicode=ucs4"
@@ -37,7 +37,7 @@ function do_python_build {
37
37
fi
38
38
fi
39
39
# -Wformat added for https://bugs.python.org/issue17547 on Python 2.6
40
- CFLAGS=" -Wformat" ./configure --prefix=/opt/${py_ver}${soabi_flags} --disable-shared $unicode_flags > /dev/null
40
+ CFLAGS=" -Wformat" ./configure --prefix=/opt/python/ ${py_ver}${soabi_flags} --disable-shared $unicode_flags > /dev/null
41
41
make -j2 > /dev/null
42
42
make install > /dev/null
43
43
}
@@ -56,12 +56,11 @@ function build_python {
56
56
tar -xzf Python-$py_ver .tgz
57
57
(cd Python-$py_ver && do_python_build $py_ver $soabi_flags )
58
58
if [ $( lex_pyver $py_ver ) -ge $( lex_pyver 3) ]; then \
59
- ln -s /opt/${py_ver}${soabi_flags} /bin/python3 /opt/${py_ver}${soabi_flags} /bin/python;
59
+ ln -s /opt/python/ ${py_ver}${soabi_flags} /bin/python3 /opt/python /${py_ver}${soabi_flags} /bin/python;
60
60
fi ;
61
- ln -s /opt/${py_ver}${soabi_flags} / /opt/${py_ver2}${soabi_flags}
62
- [ ! -h /opt/${py_ver2} ] && ln -s /opt/${py_ver}${soabi_flags} / /opt/$py_ver2
63
- /opt/${py_ver}${soabi_flags} /bin/python get-pip.py
64
- /opt/${py_ver}${soabi_flags} /bin/pip install wheel
61
+ ln -s /opt/python/${py_ver}${soabi_flags} / /opt/${py_ver2}${soabi_flags}
62
+ /opt/python/${py_ver}${soabi_flags} /bin/python get-pip.py
63
+ /opt/python/${py_ver}${soabi_flags} /bin/pip install wheel
65
64
rm -rf Python-$py_ver
66
65
done
67
66
rm -f Python-$py_ver .tgz
0 commit comments