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
5aaaec8e
Unverified
Commit
5aaaec8e
authored
Apr 17, 2025
by
James Lamb
Committed by
GitHub
Apr 17, 2025
Browse files
[ci] [python-package] re-enable scikit-build-core binary stripping (#6872)
parent
82c85e40
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
.ci/check-python-dists.sh
.ci/check-python-dists.sh
+1
-1
.ci/setup.sh
.ci/setup.sh
+1
-1
.ci/test-windows.ps1
.ci/test-windows.ps1
+3
-3
.ci/test.sh
.ci/test.sh
+2
-2
python-package/pyproject.toml
python-package/pyproject.toml
+1
-3
No files found.
.ci/check-python-dists.sh
View file @
5aaaec8e
...
...
@@ -26,7 +26,7 @@ fi
PY_MINOR_VER
=
$(
python
-c
"import sys; print(sys.version_info.minor)"
)
if
[
"
$PY_MINOR_VER
"
-gt
7
]
;
then
echo
"pydistcheck..."
pip
install
'pydistcheck>=0.
7.0
'
pip
install
'pydistcheck>=0.
9.1
'
if
{
test
"
${
TASK
}
"
=
"cuda"
||
test
"
${
METHOD
}
"
=
"wheel"
;
}
;
then
pydistcheck
\
--inspect
\
...
...
.ci/setup.sh
View file @
5aaaec8e
...
...
@@ -22,7 +22,7 @@ if [[ $OS_NAME == "macos" ]]; then
if
[[
$COMPILER
==
"clang"
]]
;
then
brew
install
libomp
else
# gcc
brew
install
'gcc@1
2
'
brew
install
'gcc@1
4
'
fi
if
[[
$TASK
==
"mpi"
]]
;
then
brew
install
open-mpi
...
...
.ci/test-windows.ps1
View file @
5aaaec8e
...
...
@@ -18,14 +18,14 @@ Remove-Item $env:TMPDIR -Force -Recurse -ErrorAction Ignore
if
(
$
env
:
TASK
-eq
"r-package"
)
{
&
.
\.ci\test-r-package-windows.ps1
;
Assert-Output
$?
E
xit
0
e
xit
0
}
if
(
$
env
:
TASK
-eq
"cpp-tests"
)
{
cmake
-B
build
-S
.
-DBUILD_CPP_TEST
=
ON
-DUSE_DEBUG
=
ON
-A
x64
cmake
--build
build
--target
testlightgbm
--config
Debug
;
Assert-Output
$?
.
\Debug\testlightgbm.exe
;
Assert-Output
$?
E
xit
0
e
xit
0
}
if
(
$
env
:
TASK
-eq
"swig"
)
{
...
...
@@ -59,7 +59,7 @@ if ($env:TASK -eq "swig") {
if
(
$
env
:
AZURE
-eq
"true"
)
{
cp
.
/build/lightgbmlib.jar
$
env
:
BUILD_ARTIFACTSTAGINGDIRECTORY
/lightgbmlib_win.jar
;
Assert-Output
$?
}
E
xit
0
e
xit
0
}
# setup for Python
...
...
.ci/test.sh
View file @
5aaaec8e
...
...
@@ -14,8 +14,8 @@ ARCH=$(uname -m)
LGB_VER
=
$(
head
-n
1
"
${
BUILD_DIRECTORY
}
/VERSION.txt"
)
if
[[
$OS_NAME
==
"macos"
]]
&&
[[
$COMPILER
==
"gcc"
]]
;
then
export
CXX
=
g++-1
2
export
CC
=
gcc-1
2
export
CXX
=
g++-1
4
export
CC
=
gcc-1
4
elif
[[
$OS_NAME
==
"linux"
]]
&&
[[
$COMPILER
==
"clang"
]]
;
then
export
CXX
=
clang++
export
CC
=
clang
...
...
python-package/pyproject.toml
View file @
5aaaec8e
...
...
@@ -73,9 +73,7 @@ cmake.args = [
build.verbose
=
false
cmake.build-type
=
"Release"
build.targets
=
["_lightgbm"]
# stripping binaries should be turned back on once this is fixed:
# https://github.com/jameslamb/pydistcheck/issues/235
install.strip
=
false
install.strip
=
true
logging.level
=
"INFO"
sdist.reproducible
=
true
wheel.py-api
=
"py3"
...
...
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