pypy3Packages.meson: fix postPatch

This commit is contained in:
Sandro Jäckel 2026-02-26 18:44:27 +01:00
commit 6517fae64e
No known key found for this signature in database
GPG key ID: 236B6291555E8401

View file

@ -72,11 +72,11 @@ python3.pkgs.buildPythonApplication rec {
if python3.isPyPy then
''
substituteInPlace mesonbuild/modules/python.py \
--replace-fail "PythonExternalProgram('python3', mesonlib.python_command)" \
"PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command)"
--replace-fail "PythonExternalProgram('python3', mesonlib.python_command" \
"PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command"
substituteInPlace mesonbuild/modules/python3.py \
--replace-fail "state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, 'python3')" \
"state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, '${python3.meta.mainProgram}')"
--replace-fail "state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, 'python3'" \
"state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, '${python3.meta.mainProgram}'"
substituteInPlace "test cases"/*/*/*.py "test cases"/*/*/*/*.py \
--replace-quiet '#!/usr/bin/env python3' '#!/usr/bin/env pypy3' \
--replace-quiet '#! /usr/bin/env python3' '#!/usr/bin/env pypy3'
@ -141,6 +141,8 @@ python3.pkgs.buildPythonApplication rec {
++ lib.optionals python3.isPyPy [
# fails for unknown reason
"test cases/python/4 custom target depends extmodule"
# we patch the path to the binary...
"test cases/common/26 find program"
]
))
++ [