mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-16 07:15:13 +01:00
Merge pull request #12965 from danfengliu/cherry-pick-2.1.0-fix-git-action-ci-missing-site-packages-issue
Fix git action CI missing python sit packages issue
This commit is contained in:
commit
c3c4a5ef6c
@ -25,7 +25,10 @@ sudo wget https://bootstrap.pypa.io/get-pip.py && sudo python ./get-pip.py && su
|
||||
sudo make swagger_client
|
||||
#TODO: Swagger python package used to installed into dist-packages, but it's changed into site-packages all in a sudden, we havn't found the root cause.
|
||||
# so current workround is to copy swagger packages from site-packages to dist-packages.
|
||||
sudo cp -r /usr/lib/python3.7/site-packages/* /usr/local/lib/python3.7/dist-packages
|
||||
package_dir=/usr/lib/python3.7/site-packages
|
||||
if [ -d $package_dir ] && [ $(find $package_dir -type f -name "*client*.egg" | wc -l) -gt 0 ];then
|
||||
sudo cp -rf ${package_dir}/* /usr/local/lib/python3.7/dist-packages
|
||||
fi
|
||||
|
||||
if [ $GITHUB_TOKEN ];
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user