Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CSAN
Csan
Commits
34e24901
Commit
34e24901
authored
Sep 03, 2020
by
danfengliu
Browse files
Fix git action CI python package installation
Signed-off-by:
danfengliu
<
danfengl@vmware.com
>
parent
316f0349
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/ci/api_common_install.sh
tests/ci/api_common_install.sh
+2
-2
No files found.
tests/ci/api_common_install.sh
View file @
34e24901
...
...
@@ -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
-r
f
${
package_dir
}
/
*
/usr/local/lib/python3.7/dist-packages
fi
if
[
$GITHUB_TOKEN
]
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment