Skip to content

Commit 88c569e

Browse files
committed
Use a venv for the build.
1 parent a61c4f4 commit 88c569e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pipeline
1919
steps
2020
{
2121
sh '''
22+
python3 -m venv venv/
23+
source venv/bin/activate
24+
pip3 install numpy pandas cython setuptools twine cibuildwheel
25+
2226
git clone https://github.com/mlpack/mlpack
2327
cd mlpack/
2428
git checkout $MLPACK_VERSION
@@ -124,6 +128,7 @@ pipeline
124128

125129
sh '''
126130
echo "CIBW_BUILD: $CIBW_BUILD"
131+
source venv/bin/activate
127132
cibuildwheel --output-dir wheelhouse mlpack/build/src/mlpack/bindings/python/
128133
'''
129134
}
@@ -135,6 +140,7 @@ pipeline
135140
archiveArtifacts 'wheelhouse/*.whl'
136141

137142
sh '''
143+
source venv/bin/activate
138144
echo "[pypi]" > ~/.pypirc
139145
echo "username = __token__" >> ~/.pypirc
140146
echo "password = $TWINE_PYPI_TOKEN" >> ~/.pypirc

0 commit comments

Comments
 (0)