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
6a3f2a96
Unverified
Commit
6a3f2a96
authored
Sep 21, 2021
by
Nikita Titov
Committed by
GitHub
Sep 20, 2021
Browse files
[python] initialize installation options with boolean values in `setup.py` (#4620)
parent
702fff22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
python-package/setup.py
python-package/setup.py
+18
-18
No files found.
python-package/setup.py
View file @
6a3f2a96
...
@@ -218,21 +218,21 @@ class CustomInstall(install):
...
@@ -218,21 +218,21 @@ class CustomInstall(install):
def
initialize_options
(
self
)
->
None
:
def
initialize_options
(
self
)
->
None
:
install
.
initialize_options
(
self
)
install
.
initialize_options
(
self
)
self
.
mingw
=
0
self
.
mingw
=
False
self
.
integrated_opencl
=
0
self
.
integrated_opencl
=
False
self
.
gpu
=
0
self
.
gpu
=
False
self
.
cuda
=
0
self
.
cuda
=
False
self
.
boost_root
=
None
self
.
boost_root
=
None
self
.
boost_dir
=
None
self
.
boost_dir
=
None
self
.
boost_include_dir
=
None
self
.
boost_include_dir
=
None
self
.
boost_librarydir
=
None
self
.
boost_librarydir
=
None
self
.
opencl_include_dir
=
None
self
.
opencl_include_dir
=
None
self
.
opencl_library
=
None
self
.
opencl_library
=
None
self
.
mpi
=
0
self
.
mpi
=
False
self
.
hdfs
=
0
self
.
hdfs
=
False
self
.
precompile
=
0
self
.
precompile
=
False
self
.
nomp
=
0
self
.
nomp
=
False
self
.
bit32
=
0
self
.
bit32
=
False
def
run
(
self
)
->
None
:
def
run
(
self
)
->
None
:
if
(
8
*
struct
.
calcsize
(
"P"
))
!=
64
:
if
(
8
*
struct
.
calcsize
(
"P"
))
!=
64
:
...
@@ -261,21 +261,21 @@ class CustomBdistWheel(bdist_wheel):
...
@@ -261,21 +261,21 @@ class CustomBdistWheel(bdist_wheel):
def
initialize_options
(
self
)
->
None
:
def
initialize_options
(
self
)
->
None
:
bdist_wheel
.
initialize_options
(
self
)
bdist_wheel
.
initialize_options
(
self
)
self
.
mingw
=
0
self
.
mingw
=
False
self
.
integrated_opencl
=
0
self
.
integrated_opencl
=
False
self
.
gpu
=
0
self
.
gpu
=
False
self
.
cuda
=
0
self
.
cuda
=
False
self
.
boost_root
=
None
self
.
boost_root
=
None
self
.
boost_dir
=
None
self
.
boost_dir
=
None
self
.
boost_include_dir
=
None
self
.
boost_include_dir
=
None
self
.
boost_librarydir
=
None
self
.
boost_librarydir
=
None
self
.
opencl_include_dir
=
None
self
.
opencl_include_dir
=
None
self
.
opencl_library
=
None
self
.
opencl_library
=
None
self
.
mpi
=
0
self
.
mpi
=
False
self
.
hdfs
=
0
self
.
hdfs
=
False
self
.
precompile
=
0
self
.
precompile
=
False
self
.
nomp
=
0
self
.
nomp
=
False
self
.
bit32
=
0
self
.
bit32
=
False
def
finalize_options
(
self
)
->
None
:
def
finalize_options
(
self
)
->
None
:
bdist_wheel
.
finalize_options
(
self
)
bdist_wheel
.
finalize_options
(
self
)
...
...
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