Commit 62573cf 1 parent 498a79f commit 62573cf Copy full SHA for 62573cf
File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,21 @@ sudo apt-get update
4
4
sudo apt-get install -y lsb-core
5
5
sudo apt-get install -y --no-install-recommends build-essential castxml cmake libgtest-dev liblapacke-dev libopenblas-dev libpugixml-dev sqlite3
6
6
7
+ IS_PYTHON_3_10=0
8
+ echo " !!!!!!! Python version: ${PYTHON_BINDING_VERSION} !!!!!!!"
9
+ if [ " ${PYTHON_BINDING_VERSION} " == " 3.10" ]; then
10
+ echo " !!!!!!! Python version is 3.10 detected !!!!!!!"
11
+ IS_PYTHON_3_10=1
12
+ fi
13
+
14
+ IS_UBUNTU_20_04=0
7
15
if [ ` lsb_release -a | grep Release | grep " 20.04" | wc -l` == 1 ]; then
8
- echo " !!!!!!! Ubunut 20.04: remove python2 !!!!!!!"
16
+ echo " !!!!!!! Ubuntu 20.04: remove python2 !!!!!!!"
9
17
sudo apt autoremove python2 python2-dev -y
18
+ IS_UBUNTU_20_04=1
10
19
fi
11
20
12
- if [ ` lsb_release -a | grep Release | grep " 20.04 " | wc -l ` == 1 ] -a [ " ${PYTHON_BINDING_VERSION} " == " 3.10 " ] ; then
21
+ if (( IS_UBUNTU_ 20 _ 04 && IS_PYTHON_ 3 _ 10 )) ; then
13
22
echo " !!!!!!! Ubunut 20.04 and python 3.10: install python 3.10 and remove boost !!!!!!!"
14
23
sudo add-apt-repository ppa:deadsnakes/ppa -y
15
24
sudo apt-get update
@@ -30,7 +39,7 @@ sudo pip${PYTHON_BINDING_VERSION} install testresources
30
39
sudo pip${PYTHON_BINDING_VERSION} install --upgrade setuptools==59.6.0
31
40
sudo pip${PYTHON_BINDING_VERSION} install colcon-common-extensions xmlrunner pygccxml pyplusplus
32
41
33
- if [ ` lsb_release -a | grep Release | grep " 20.04 " | wc -l ` == 1 ] -a [ " ${PYTHON_BINDING_VERSION} " == " 3.10 " ] ; then
42
+ if (( IS_UBUNTU_ 20 _ 04 && IS_PYTHON_ 3 _ 10 )) ; then
34
43
echo " !!!!!!! Ubunut 20.04 and python 3.10: compile boost !!!!!!!"
35
44
pushd dependencies
36
45
You can’t perform that action at this time.
0 commit comments