(self)
| 254 | self.bit32 = 0 |
| 255 | |
| 256 | def run(self): |
| 257 | if (8 * struct.calcsize("P")) != 64: |
| 258 | if self.bit32: |
| 259 | logger.warning("You're installing 32-bit version. " |
| 260 | "This version is slow and untested, so use it on your own risk.") |
| 261 | else: |
| 262 | raise Exception("Cannot install LightGBM in 32-bit Python, " |
| 263 | "please use 64-bit Python instead.") |
| 264 | open(LOG_PATH, 'wb').close() |
| 265 | if not self.precompile: |
| 266 | copy_files(use_gpu=self.gpu) |
| 267 | compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_mpi=self.mpi, |
| 268 | use_hdfs=self.hdfs, boost_root=self.boost_root, boost_dir=self.boost_dir, |
| 269 | boost_include_dir=self.boost_include_dir, boost_librarydir=self.boost_librarydir, |
| 270 | opencl_include_dir=self.opencl_include_dir, opencl_library=self.opencl_library, |
| 271 | openmp_include_dir=self.openmp_include_dir, openmp_library=self.openmp_library, |
| 272 | nomp=self.nomp, bit32=self.bit32) |
| 273 | install.run(self) |
| 274 | if os.path.isfile(LOG_PATH): |
| 275 | os.remove(LOG_PATH) |
| 276 | |
| 277 | |
| 278 | class CustomSdist(sdist): |
nothing calls this directly
no test coverage detected