Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] initialize installation options with boolean values in setup.py #4620

Merged
merged 1 commit into from
Sep 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,21 @@ class CustomInstall(install):

def initialize_options(self) -> None:
install.initialize_options(self)
self.mingw = 0
self.integrated_opencl = 0
self.gpu = 0
self.cuda = 0
self.mingw = False
self.integrated_opencl = False
self.gpu = False
self.cuda = False
self.boost_root = None
self.boost_dir = None
self.boost_include_dir = None
self.boost_librarydir = None
self.opencl_include_dir = None
self.opencl_library = None
self.mpi = 0
self.hdfs = 0
self.precompile = 0
self.nomp = 0
self.bit32 = 0
self.mpi = False
self.hdfs = False
self.precompile = False
self.nomp = False
self.bit32 = False

def run(self) -> None:
if (8 * struct.calcsize("P")) != 64:
Expand Down Expand Up @@ -261,21 +261,21 @@ class CustomBdistWheel(bdist_wheel):

def initialize_options(self) -> None:
bdist_wheel.initialize_options(self)
self.mingw = 0
self.integrated_opencl = 0
self.gpu = 0
self.cuda = 0
self.mingw = False
self.integrated_opencl = False
self.gpu = False
self.cuda = False
self.boost_root = None
self.boost_dir = None
self.boost_include_dir = None
self.boost_librarydir = None
self.opencl_include_dir = None
self.opencl_library = None
self.mpi = 0
self.hdfs = 0
self.precompile = 0
self.nomp = 0
self.bit32 = 0
self.mpi = False
self.hdfs = False
self.precompile = False
self.nomp = False
self.bit32 = False

def finalize_options(self) -> None:
bdist_wheel.finalize_options(self)
Expand Down