Commit 9b435d65 authored by Guolin Ke's avatar Guolin Ke
Browse files

bump version to v2.0.4

parent 711a0a78
...@@ -59,7 +59,8 @@ if [[ ${TASK} == "gpu" ]]; then ...@@ -59,7 +59,8 @@ if [[ ${TASK} == "gpu" ]]; then
export PATH="$AMDAPPSDK/include/:$PATH" export PATH="$AMDAPPSDK/include/:$PATH"
export BOOST_ROOT="$HOME/miniconda/" export BOOST_ROOT="$HOME/miniconda/"
LGB_VER=$(head -n 1 VERSION.txt) LGB_VER=$(head -n 1 VERSION.txt)
cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist --gpu || exit -1 sed -i 's/std::string device_type = "cpu";/std::string device_type = "gpu";/' ../include/LightGBM/config.h
cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1
cd $TRAVIS_BUILD_DIR/python-package/dist && pip install lightgbm-$LGB_VER.tar.gz -v --install-option=--gpu || exit -1 cd $TRAVIS_BUILD_DIR/python-package/dist && pip install lightgbm-$LGB_VER.tar.gz -v --install-option=--gpu || exit -1
cd $TRAVIS_BUILD_DIR && pytest tests/python_package_test || exit -1 cd $TRAVIS_BUILD_DIR && pytest tests/python_package_test || exit -1
exit 0 exit 0
......
2.0.3 2.0.4
\ No newline at end of file \ No newline at end of file
...@@ -104,16 +104,8 @@ class CustomInstall(install): ...@@ -104,16 +104,8 @@ class CustomInstall(install):
class CustomSdist(sdist): class CustomSdist(sdist):
user_options = sdist.user_options + [
('gpu', 'g', 'compile gpu version')
]
def initialize_options(self):
sdist.initialize_options(self)
self.gpu = 0
def run(self): def run(self):
copy_files(use_gpu=self.gpu) copy_files(use_gpu=True)
open("./_IS_SOURCE_PACKAGE.txt", 'w').close() open("./_IS_SOURCE_PACKAGE.txt", 'w').close()
if os.path.exists("./lightgbm/Release/"): if os.path.exists("./lightgbm/Release/"):
shutil.rmtree('./lightgbm/Release/') shutil.rmtree('./lightgbm/Release/')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment