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
7c71db04
Unverified
Commit
7c71db04
authored
May 06, 2023
by
James Lamb
Committed by
GitHub
May 06, 2023
Browse files
[ci] minor fixes to build-python.sh (#5869)
parent
17ecfab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
build-python.sh
build-python.sh
+10
-7
No files found.
build-python.sh
View file @
7c71db04
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#
#
# [options]
# [options]
#
#
# --boost-dir=FILEPATH
# Directory with Boost package configuration file.
# --boost-include-dir=FILEPATH
# --boost-include-dir=FILEPATH
# Directory containing Boost headers.
# Directory containing Boost headers.
# --boost-librarydir=FILEPATH
# --boost-librarydir=FILEPATH
...
@@ -70,12 +72,6 @@ PIP_INSTALL_ARGS=""
...
@@ -70,12 +72,6 @@ PIP_INSTALL_ARGS=""
BUILD_ARGS
=
""
BUILD_ARGS
=
""
PRECOMPILE
=
"false"
PRECOMPILE
=
"false"
BOOST_INCLUDE_DIR
=
""
BOOST_LIBRARY_DIR
=
""
BOOST_ROOT
=
""
OPENCL_INCLUDE_DIR
=
""
OPENCL_LIBRARY
=
""
while
[
$#
-gt
0
]
;
do
while
[
$#
-gt
0
]
;
do
case
"
$1
"
in
case
"
$1
"
in
############################
############################
...
@@ -93,6 +89,13 @@ while [ $# -gt 0 ]; do
...
@@ -93,6 +89,13 @@ while [ $# -gt 0 ]; do
############################
############################
# customized library paths #
# customized library paths #
############################
############################
--boost-dir
|
--boost-dir
=
*
)
if
[[
"
$1
"
!=
*
=
*
]]
;
then
shift
;
fi
BOOST_DIR
=
"
${
1
#*=
}
"
BUILD_ARGS
=
"
${
BUILD_ARGS
}
--boost-dir='
${
BOOST_DIR
}
'"
;;
--boost-include-dir
|
--boost-include-dir
=
*
)
--boost-include-dir
|
--boost-include-dir
=
*
)
if
[[
"
$1
"
!=
*
=
*
]]
;
if
[[
"
$1
"
!=
*
=
*
]]
;
then
shift
;
then
shift
;
...
@@ -312,7 +315,7 @@ if test "${BUILD_SDIST}" = true; then
...
@@ -312,7 +315,7 @@ if test "${BUILD_SDIST}" = true; then
fi
fi
if
test
"
${
BUILD_WHEEL
}
"
=
true
;
then
if
test
"
${
BUILD_WHEEL
}
"
=
true
;
then
echo
"--- building wheel ---"
#
echo
"--- building wheel ---"
rm
-f
../dist/
*
.whl
||
true
rm
-f
../dist/
*
.whl
||
true
python setup.py bdist_wheel
\
python setup.py bdist_wheel
\
--dist-dir
../dist
\
--dist-dir
../dist
\
...
...
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