Skip to content

Commit

Permalink
Add tomli, ensure virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Nov 11, 2023
1 parent c8a7969 commit 72b4e29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion travis_linux_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-$TRAVIS_PYTHON_VERSION}

function before_install {
# Install a virtualenv to work in.
python -m pip install virtualenv
virtualenv --python=$PYTHON_EXE venv
source venv/bin/activate
python --version # just to check
pip install --upgrade pip wheel
# Tomli for wheel parsing.
pip install --upgrade pip wheel tomli
}

function build_wheel {
Expand Down
3 changes: 2 additions & 1 deletion travis_osx_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function before_install {

get_macpython_environment $MB_PYTHON_VERSION venv
source venv/bin/activate
pip install --upgrade pip wheel
# Tomli for wheel parsing.
pip install --upgrade pip wheel tomli
}

# build_wheel function defined in common_utils (via osx_utils)
Expand Down
6 changes: 6 additions & 0 deletions travis_steps.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash
# Despite the name, this file is not specific to Travis-CI.
# It sets up the local environment for wheel building and testing.
# For Mac, configure xcode, and set up before_install and other
# functions to wrap builds.
# For linux, set up before_install to work in virtualenv, and set up wrapping
# to run build and tests in docker containers.

WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}

Expand Down

0 comments on commit 72b4e29

Please sign in to comment.