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
9b435d65
Commit
9b435d65
authored
Jun 30, 2017
by
Guolin Ke
Browse files
bump version to v2.0.4
parent
711a0a78
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
.travis/test.sh
.travis/test.sh
+2
-1
VERSION.txt
VERSION.txt
+1
-1
python-package/setup.py
python-package/setup.py
+1
-9
No files found.
.travis/test.sh
View file @
9b435d65
...
...
@@ -59,7 +59,8 @@ if [[ ${TASK} == "gpu" ]]; then
export
PATH
=
"
$AMDAPPSDK
/include/:
$PATH
"
export
BOOST_ROOT
=
"
$HOME
/miniconda/"
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
&&
pytest tests/python_package_test
||
exit
-1
exit
0
...
...
VERSION.txt
View file @
9b435d65
2.0.3
\ No newline at end of file
2.0.4
\ No newline at end of file
python-package/setup.py
View file @
9b435d65
...
...
@@ -104,16 +104,8 @@ class CustomInstall(install):
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
):
copy_files
(
use_gpu
=
self
.
gpu
)
copy_files
(
use_gpu
=
True
)
open
(
"./_IS_SOURCE_PACKAGE.txt"
,
'w'
).
close
()
if
os
.
path
.
exists
(
"./lightgbm/Release/"
):
shutil
.
rmtree
(
'./lightgbm/Release/'
)
...
...
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