You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
638d346d66
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
23 lines
428 B
Python
Executable File
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)
|