Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
a8b70784
"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "8696a490de31c34492993f769d2effee2429d99e"
Unverified
Commit
a8b70784
authored
Jul 04, 2024
by
Hug_Bunter
Committed by
GitHub
Jul 03, 2024
Browse files
[ci] resolve shellcheck errors in .ci/check_python_dists.sh (#6503)
parent
83df24d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
.ci/check_python_dists.sh
.ci/check_python_dists.sh
+6
-6
No files found.
.ci/check_python_dists.sh
View file @
a8b70784
#!/bin/sh
#!/bin/sh
set
-e
-E
-u
set
-e
-u
DIST_DIR
=
${
1
}
DIST_DIR
=
${
1
}
...
@@ -24,7 +24,7 @@ if { test "${TASK}" = "bdist" || test "${METHOD}" = "wheel"; }; then
...
@@ -24,7 +24,7 @@ if { test "${TASK}" = "bdist" || test "${METHOD}" = "wheel"; }; then
fi
fi
PY_MINOR_VER
=
$(
python
-c
"import sys; print(sys.version_info.minor)"
)
PY_MINOR_VER
=
$(
python
-c
"import sys; print(sys.version_info.minor)"
)
if
[
$PY_MINOR_VER
-gt
7
]
;
then
if
[
"
$PY_MINOR_VER
"
-gt
7
]
;
then
echo
"pydistcheck..."
echo
"pydistcheck..."
pip
install
'pydistcheck>=0.7.0'
pip
install
'pydistcheck>=0.7.0'
if
{
test
"
${
TASK
}
"
=
"cuda"
||
test
"
${
METHOD
}
"
=
"wheel"
;
}
;
then
if
{
test
"
${
TASK
}
"
=
"cuda"
||
test
"
${
METHOD
}
"
=
"wheel"
;
}
;
then
...
@@ -34,22 +34,22 @@ if [ $PY_MINOR_VER -gt 7 ]; then
...
@@ -34,22 +34,22 @@ if [ $PY_MINOR_VER -gt 7 ]; then
--ignore
'distro-too-large-compressed'
\
--ignore
'distro-too-large-compressed'
\
--max-allowed-size-uncompressed
'100M'
\
--max-allowed-size-uncompressed
'100M'
\
--max-allowed-files
800
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
1
"
$(
echo
${
DIST_DIR
}
/
*
)
"
||
exit
1
elif
{
test
$(
uname
-m
)
=
"aarch64"
;
}
;
then
elif
{
test
"
$(
uname
-m
)
"
=
"aarch64"
;
}
;
then
pydistcheck
\
pydistcheck
\
--inspect
\
--inspect
\
--ignore
'compiled-objects-have-debug-symbols'
\
--ignore
'compiled-objects-have-debug-symbols'
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-files
800
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
1
"
$(
echo
${
DIST_DIR
}
/
*
)
"
||
exit
1
else
else
pydistcheck
\
pydistcheck
\
--inspect
\
--inspect
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-compressed
'5M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-size-uncompressed
'15M'
\
--max-allowed-files
800
\
--max-allowed-files
800
\
${
DIST_DIR
}
/
*
||
exit
1
"
$(
echo
${
DIST_DIR
}
/
*
)
"
||
exit
1
fi
fi
else
else
echo
"skipping pydistcheck (does not support Python 3.
${
PY_MINOR_VER
}
)"
echo
"skipping pydistcheck (does not support Python 3.
${
PY_MINOR_VER
}
)"
...
...
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