Skip to content

Commit a50bb53

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 a50bb53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

misc/build_wheel.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ 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+
grep -v lxml {project}/mypy/test-requirements.txt > /tmp/requirements.txt
80+
&& pip install -r /tmp/requirements.txt
81+
"""
8182

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

0 commit comments

Comments
 (0)