Commit 6d420050 authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by VoVAllen
Browse files

[WIP][CI] Build Windows packages within virtualenv (#709)

* try venv for win64

* update

* update

* trying another

* update

* update

* update

* trigger ci

* update

* update
parent 9cc83b4b
...@@ -293,4 +293,11 @@ pipeline { ...@@ -293,4 +293,11 @@ pipeline {
} }
} }
} }
post {
always {
node('windows') {
bat "rmvirtualenv ${BUILD_TAG}"
}
}
}
} }
@ECHO OFF @ECHO OFF
SETLOCAL EnableDelayedExpansion SETLOCAL EnableDelayedExpansion
CALL mkvirtualenv --system-site-packages %BUILD_TAG%
DEL /S /Q build DEL /S /Q build
DEL /S /Q _download DEL /S /Q _download
MD build MD build
...@@ -15,7 +16,7 @@ POPD ...@@ -15,7 +16,7 @@ POPD
PUSHD python PUSHD python
DEL /S /Q build *.egg-info dist DEL /S /Q build *.egg-info dist
pip install -e . --force-reinstall --user || EXIT /B 1 pip install -e . || EXIT /B 1
POPD POPD
ENDLOCAL ENDLOCAL
......
...@@ -15,6 +15,7 @@ IF x%1x==xx ( ...@@ -15,6 +15,7 @@ IF x%1x==xx (
ECHO Must supply CPU or GPU ECHO Must supply CPU or GPU
GOTO :FAIL GOTO :FAIL
) )
CALL workon %BUILD_TAG%
SET DGLBACKEND=pytorch SET DGLBACKEND=pytorch
SET DGL_LIBRARY_PATH=!CD!\build SET DGL_LIBRARY_PATH=!CD!\build
......
...@@ -7,6 +7,7 @@ IF x%1x==xx ( ...@@ -7,6 +7,7 @@ IF x%1x==xx (
) ELSE ( ) ELSE (
SET BACKEND=%1 SET BACKEND=%1
) )
CALL workon %BUILD_TAG%
SET PYTHONPATH=tests;!CD!\python;!PYTHONPATH! SET PYTHONPATH=tests;!CD!\python;!PYTHONPATH!
SET DGLBACKEND=!BACKEND! SET DGLBACKEND=!BACKEND!
......
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