Skip to content

Commit 9899ac1

Browse files
committed
Back off further
1 parent dcf3f3d commit 9899ac1

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
1111
else
1212
export MACOSX_DEPLOYMENT_TARGET="10.10"
1313
fi
14+
# Mac Pythons do not have toml parser by default.
15+
python3 install tomli
1416
fi
1517

1618
if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
@@ -20,14 +22,13 @@ fi
2022
echo "::group::Install a virtualenv"
2123
source multibuild/common_utils.sh
2224
source multibuild/travis_steps.sh
23-
$PYTHON_EXE -m pip install virtualenv
25+
python3 -m pip install virtualenv
2426
before_install
2527
echo "::endgroup::"
2628

2729
echo "::group::Build wheel"
2830
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})
3132
clean_code
3233
build_wheel
3334
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"

config.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Define custom utilities
22
# Test for OSX with [ -n "$IS_MACOS" ]
33

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-
94
function run_tests {
105
# Runs tests on installed distribution from an empty directory
116
python --version

print_deps.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
from pathlib import Path
77
from argparse import ArgumentParser, RawDescriptionHelpFormatter
88

9-
import tomlkit
9+
try:
10+
import tomllib as tlib
11+
except ImportError:
12+
import tomli as tlib
1013

1114

1215
def get_phase_requirements(repo_path, phase='build'):
1316
toml = (Path(repo_path) / 'pyproject.toml').read_text()
14-
config = tomlkit.loads(toml)
17+
config = tlib.loads(toml)
1518
if phase == 'build':
1619
requires = config.get('build-system', {}).get('requires', [])
1720
else:

0 commit comments

Comments
 (0)