Skip to content

Commit

Permalink
Build saithrift with python3.9 in bullseye
Browse files Browse the repository at this point in the history
Bullseye upgrade the python to python3.9 and other image, like buster still using python 2.7.
To build with different python in different image, add a condition for copy differernt install file in different type of image.

Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
  • Loading branch information
richardyu-ms committed Jul 22, 2022
1 parent 8999a5f commit 9978f19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions debian/copy_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ then
echo "Copy python-saithriftv2.install as python-saithrift.install"
cp ./debian/installerFiles/python-saithriftv2.install ./debian/python-saithrift.install
else
echo "Copy python-saithriftv1.install as python-saithrift.install"
cp ./debian/installerFiles/python-saithriftv1.install ./debian/python-saithrift.install
if test -n "lsb_release -a | grep bullseye"
then
echo "Copy python-saithriftv1-bullseye.install as python-saithrift.install"
cp ./debian/installerFiles/python-saithriftv1-bullseye.install ./debian/python-saithrift.install
else
echo "Copy python-saithriftv1.install as python-saithrift.install"
cp ./debian/installerFiles/python-saithriftv1.install ./debian/python-saithrift.install
fi
fi
2 changes: 2 additions & 0 deletions debian/installerFiles/python-saithriftv1-bullseye.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#compatiable with bullseye python 3.9 environment
debian/usr/local/lib/python3.9/site-packages/* /usr/lib/python3/dist-packages/

0 comments on commit 9978f19

Please sign in to comment.