Files
Dan Villiom Podlaski Christiansen 638d346d66 py-pyobjc: update to 8.4.1
I elected to drop most of the patching of the build infrastructure,
and just use PEP-517 on each directory instead. Since the tools don't
actually support multiple directories or wheels, I added two small
scripts to do that. Hopefully this should prove more reliable and
maintainable in the long run.

Closes: https://trac.macports.org/ticket/64766
2022-04-10 12:07:42 -04:00

23 lines
428 B
Python
Executable File

#!/usr/bin/env python3
#
# This is a small script that intercepts the install command, and
# applies it to multiple wheels.
#
import multiprocessing.dummy
import os
import pathlib
import subprocess
import sys
sys.path.insert(0, "development-support")
import _install_tool
workdir = pathlib.Path(sys.argv[1])
cmd = sys.argv[2:]
for wheel in workdir.glob("*.whl"):
subprocess.run(cmd + [wheel], cwd=workdir, check=True)