Skip to content

Commit

Permalink
Fix shell syntax in build_wheel
Browse files Browse the repository at this point in the history
Follow up to #11872
The cross repo split makes this a bit of a pain to test.
  • Loading branch information
hauntsaninja committed Dec 30, 2021
1 parent 22d4f1d commit f43f047
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions misc/build_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ def create_environ(python_version: str) -> Dict[str, str]:

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

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

0 comments on commit f43f047

Please sign in to comment.