Skip to content

Commit f43f047

Browse files
author
hauntsaninja
committed
Fix shell syntax in build_wheel
Follow up to python#11872 The cross repo split makes this a bit of a pain to test.
1 parent 22d4f1d commit f43f047

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

misc/build_wheel.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ def create_environ(python_version: str) -> Dict[str, str]:
7575

7676
# lxml doesn't have a wheel for Python 3.10 on the manylinux image we use.
7777
# lxml has historically been slow to support new Pythons as well.
78-
env['CIBW_BEFORE_TEST'] = (
79-
'pip install -r <(grep -v lxml {project}/mypy/test-requirements.txt)'
80-
)
78+
env['CIBW_BEFORE_TEST'] = """
79+
(
80+
grep -v lxml {project}/mypy/test-requirements.txt > /tmp/requirements.txt && pip install -r /tmp/requirements.txt
81+
)
82+
"""
8183

8284
# pytest looks for configuration files in the parent directories of where the tests live.
8385
# since we are trying to run the tests from their installed location, we copy those into

0 commit comments

Comments
 (0)