Skip to content

Commit

Permalink
[WIP][CI] Build Windows packages within virtualenv (dmlc#709)
Browse files Browse the repository at this point in the history
* try venv for win64

* update

* update

* trying another

* update

* update

* update

* trigger ci

* update

* update
  • Loading branch information
BarclayII authored and VoVAllen committed Jul 12, 2019
1 parent 9cc83b4 commit 6d42005
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,11 @@ pipeline {
}
}
}
post {
always {
node('windows') {
bat "rmvirtualenv ${BUILD_TAG}"
}
}
}
}
3 changes: 2 additions & 1 deletion tests/scripts/build_dgl.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion

CALL mkvirtualenv --system-site-packages %BUILD_TAG%
DEL /S /Q build
DEL /S /Q _download
MD build
Expand All @@ -15,7 +16,7 @@ POPD

PUSHD python
DEL /S /Q build *.egg-info dist
pip install -e . --force-reinstall --user || EXIT /B 1
pip install -e . || EXIT /B 1
POPD

ENDLOCAL
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/task_example_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ IF x%1x==xx (
ECHO Must supply CPU or GPU
GOTO :FAIL
)
CALL workon %BUILD_TAG%

SET DGLBACKEND=pytorch
SET DGL_LIBRARY_PATH=!CD!\build
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/task_unit_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ IF x%1x==xx (
) ELSE (
SET BACKEND=%1
)
CALL workon %BUILD_TAG%

SET PYTHONPATH=tests;!CD!\python;!PYTHONPATH!
SET DGLBACKEND=!BACKEND!
Expand Down

0 comments on commit 6d42005

Please sign in to comment.