File tree 8 files changed +30
-22
lines changed
github/linux/docker/inference
aarch64/default/cpu/scripts
8 files changed +30
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
:: Licensed under the MIT License.
3
3
4
4
@ echo off
5
- rem Requires a python 3.6 or higher install to be available in your PATH
5
+ rem Requires a Python install to be available in your PATH
6
6
python " %~dp0 \tools\ci_build\build.py" --build_dir " %~dp0 \build\Windows" %*
Original file line number Diff line number Diff line change @@ -18,5 +18,4 @@ elif [[ "$*" == *"--android"* ]]; then
18
18
DIR_OS=" Android"
19
19
fi
20
20
21
- # requires python3.6 or higher
22
21
python3 $DIR /tools/ci_build/build.py --build_dir $DIR /build/$DIR_OS " $@ "
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ def __init__(self, message):
46
46
47
47
48
48
def _check_python_version ():
49
- # TODO Upgrade this, Python 3.6 is no longer supported. However, some packaging pipelines are still using it.
50
- required_minor_version = 6
49
+ required_minor_version = 7
51
50
if (sys .version_info .major , sys .version_info .minor ) < (3 , required_minor_version ):
52
51
raise UsageError (
53
52
f"Invalid Python version. At least Python 3.{ required_minor_version } is required. "
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ os_major_version=$(cat /etc/redhat-release | tr -dc '0-9.'|cut -d \. -f1)
5
5
6
6
echo " installing for CentOS version : $os_major_version "
7
7
yum install -y centos-release-scl-rh
8
- yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc-gfortran python3 python3-pip
8
+ yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc-gfortran
9
9
10
- pip3 install --upgrade pip
11
10
localedef -i en_US -f UTF-8 en_US.UTF-8
Original file line number Diff line number Diff line change @@ -45,10 +45,11 @@ tar -zxf /tmp/src/cmake-3.26.3-linux-`uname -m`.tar.gz --strip=1 -C /usr
45
45
echo " Installing Ninja"
46
46
GetFile https://github.com/ninja-build/ninja/archive/v1.10.0.tar.gz /tmp/src/ninja-linux.tar.gz
47
47
tar -zxf ninja-linux.tar.gz
48
- cd ninja-1.10.0
48
+ pushd ninja-1.10.0
49
49
cmake -Bbuild-cmake -H.
50
50
cmake --build build-cmake
51
51
mv ./build-cmake/ninja /usr/bin
52
+ popd
52
53
53
54
echo " Installing Node.js"
54
55
CPU_ARCH=` uname -m`
62
63
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz /tmp/src/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz
63
64
tar --strip 1 -xf /tmp/src/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz -C /usr
64
65
66
+ # The Python version in CentOS 7's python3 package is no longer supported (3.6) so we will build Python from source.
67
+ echo " Installing Python"
68
+ PYTHON_VERSION=" 3.8.17"
69
+ GetFile https://www.python.org/ftp/python/${PYTHON_VERSION} /Python-${PYTHON_VERSION} .tgz /tmp/src/Python-${PYTHON_VERSION} .tgz
70
+ tar -zxf Python-${PYTHON_VERSION} .tgz
71
+ pushd Python-${PYTHON_VERSION}
72
+ ./configure
73
+ make
74
+ make install
75
+ popd
76
+
65
77
cd /
66
78
rm -rf /tmp/src
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ os_major_version=$(cat /etc/redhat-release | tr -dc '0-9.'|cut -d \. -f1)
5
5
6
6
echo " installing for CentOS version : $os_major_version "
7
7
yum install -y centos-release-scl-rh
8
- yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-11-binutils devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran python3 python3-pip
8
+ yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-11-binutils devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran
9
9
10
- pip3 install --upgrade pip
11
10
localedef -i en_US -f UTF-8 en_US.UTF-8
Original file line number Diff line number Diff line change @@ -45,10 +45,11 @@ tar -zxf /tmp/src/cmake-3.26.3-linux-`uname -m`.tar.gz --strip=1 -C /usr
45
45
echo " Installing Ninja"
46
46
GetFile https://github.com/ninja-build/ninja/archive/v1.10.0.tar.gz /tmp/src/ninja-linux.tar.gz
47
47
tar -zxf ninja-linux.tar.gz
48
- cd ninja-1.10.0
48
+ pushd ninja-1.10.0
49
49
cmake -Bbuild-cmake -H.
50
50
cmake --build build-cmake
51
51
mv ./build-cmake/ninja /usr/bin
52
+ popd
52
53
53
54
echo " Installing Node.js"
54
55
CPU_ARCH=` uname -m`
62
63
GetFile https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz /tmp/src/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz
63
64
tar --strip 1 -xf /tmp/src/node-v16.14.2-linux-${NODEJS_ARCH} .tar.gz -C /usr
64
65
66
+ # The Python version in CentOS 7's python3 package is no longer supported (3.6) so we will build Python from source.
67
+ echo " Installing Python"
68
+ PYTHON_VERSION=" 3.8.17"
69
+ GetFile https://www.python.org/ftp/python/${PYTHON_VERSION} /Python-${PYTHON_VERSION} .tgz /tmp/src/Python-${PYTHON_VERSION} .tgz
70
+ tar -zxf Python-${PYTHON_VERSION} .tgz
71
+ pushd Python-${PYTHON_VERSION}
72
+ ./configure
73
+ make
74
+ make install
75
+ popd
76
+
65
77
cd /
66
78
rm -rf /tmp/src
You can’t perform that action at this time.
0 commit comments