File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
11
11
else
12
12
export MACOSX_DEPLOYMENT_TARGET=" 10.10"
13
13
fi
14
+ # Mac Pythons do not have toml parser by default.
15
+ python3 install tomli
14
16
fi
15
17
16
18
if [[ " $MB_PYTHON_VERSION " == pypy3* ]]; then
20
22
echo " ::group::Install a virtualenv"
21
23
source multibuild/common_utils.sh
22
24
source multibuild/travis_steps.sh
23
- $PYTHON_EXE -m pip install virtualenv
25
+ python3 -m pip install virtualenv
24
26
before_install
25
27
echo " ::endgroup::"
26
28
27
29
echo " ::group::Build wheel"
28
30
export WHEEL_SDIR=wheelhouse
29
- $PIP_CMD install tomlkit
30
- export BUILD_DEPENDS=$( $PYTHON_EXE ./print_deps.py ${MB_PYTHON_VERSION} ${REPO_DIR} )
31
+ export BUILD_DEPENDS=$( python3 ./print_deps.py ${MB_PYTHON_VERSION} ${REPO_DIR} )
31
32
clean_code
32
33
build_wheel
33
34
ls -l " ${GITHUB_WORKSPACE} /${WHEEL_SDIR} /"
Original file line number Diff line number Diff line change 1
1
# Define custom utilities
2
2
# Test for OSX with [ -n "$IS_MACOS" ]
3
3
4
- function pip_wheel_cmd {
5
- local abs_wheelhouse=$1
6
- pip wheel $( pip_opts) -w $abs_wheelhouse --no-build-isolation --no-deps .
7
- }
8
-
9
4
function run_tests {
10
5
# Runs tests on installed distribution from an empty directory
11
6
python --version
Original file line number Diff line number Diff line change 6
6
from pathlib import Path
7
7
from argparse import ArgumentParser , RawDescriptionHelpFormatter
8
8
9
- import tomlkit
9
+ try :
10
+ import tomllib as tlib
11
+ except ImportError :
12
+ import tomli as tlib
10
13
11
14
12
15
def get_phase_requirements (repo_path , phase = 'build' ):
13
16
toml = (Path (repo_path ) / 'pyproject.toml' ).read_text ()
14
- config = tomlkit .loads (toml )
17
+ config = tlib .loads (toml )
15
18
if phase == 'build' :
16
19
requires = config .get ('build-system' , {}).get ('requires' , [])
17
20
else :
You can’t perform that action at this time.
0 commit comments