mirror of
https://github.com/goharbor/harbor
synced 2025-04-16 15:18:00 +00:00
Fix git action CI python package installation
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
316f03492f
commit
34e2490154
|
@ -26,8 +26,8 @@ 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.
|
||||
package_dir=/usr/lib/python3.7/site-packages
|
||||
if [ $(find $package_dir -type f| wc -l) -gt 0 ];then
|
||||
sudo cp -r ${package_dir}/* /usr/local/lib/python3.7/dist-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 ];
|
||||
|
|
Loading…
Reference in New Issue
Block a user