-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build saithrift with python3.9 in bullseye (#1541)
* Build saithrift with python3.9 in bullseye 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> * change the release name to version number and reuse existing files Signed-off-by: richardyu-ms <richard.yu@microsoft.com> Co-authored-by: richardyu <richardyu@contoso.com>
- Loading branch information
1 parent
8999a5f
commit c821f98
Showing
5 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
if [[ x"$1" =~ x"v2" ]] | ||
then | ||
echo "Copy python-saithriftv2.install as python-saithrift.install" | ||
cp ./debian/installerFiles/python-saithriftv2.install ./debian/python-saithrift.install | ||
echo "Copy python3-saithrift.install as python-saithrift.install" | ||
cp ./debian/installerFiles/python3-saithrift.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 [ $(lsb_release -sr) -ge 11 ] | ||
then | ||
echo "Copy python3-saithrift.install as python-saithrift.install after Ver.11 releases" | ||
cp ./debian/installerFiles/python3-saithrift.install ./debian/python-saithrift.install | ||
else | ||
echo "Copy python2.7-saithrift.install as python-saithrift.install" | ||
cp ./debian/installerFiles/python2.7-saithrift.install ./debian/python-saithrift.install | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#compatiable with bullseye python 3.9 environment and saithriftv2 build with python3 | ||
debian/usr/local/lib/python3*/site-packages/* /usr/lib/python3/dist-packages/ |