Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/wheel/macos/provision-test-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ fi

# NOTE: Xcode ships python3, make sure to use the one from brew.
$(brew --prefix python@$1)/bin/python$1 \
-m venv /tmp/drake-wheel-test/python$1
-m venv /tmp/drake-wheel-test/python
9 changes: 1 addition & 8 deletions tools/wheel/wheel_builder/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,14 @@ def _test_wheel(wheel, target, env):
"""
Runs the test script on `wheel`.
"""
# Set up the environment.
setup_script = os.path.join(
resource_root, "macos", "provision-test-python.sh"
)
subprocess.check_call(
["bash", setup_script, target.python.version], env=env
)

test_python_venv = os.path.join(test_root, "python")
os.symlink(
os.path.join(test_root, f"python{target.python.version}"),
test_python_venv,
)

# Install the wheel.
install_script = os.path.join(resource_root, "test", "install-wheel.sh")
subprocess.check_call(["bash", install_script, wheel], env=env)
Expand All @@ -108,8 +103,6 @@ def _test_wheel(wheel, target, env):
subprocess.check_call(["bash", test_script, test, wheel], env=env)
print(f"-- Executing test {test} - PASSED")

os.unlink(test_python_venv)


def build(options):
"""
Expand Down