Skip to content

Instantly share code, notes, and snippets.

@bennuttall
Last active July 31, 2024 20:17
Show Gist options
  • Save bennuttall/96674e828f9f3a8d104c3fe4206b10fb to your computer and use it in GitHub Desktop.
Save bennuttall/96674e828f9f3a8d104c3fe4206b10fb to your computer and use it in GitHub Desktop.
from pathlib import Path
from piwheels.slave.builder import Builder, Wheel
wheel_file_path = Path("awkward-1.0.0-cp37-cp37m-linux_armv7l.whl")
builder = Builder(None, None)
wheel = Wheel(wheel_file_path)
builder.build_dependencies(wheel)
with open('dependencies.txt', 'w') as f:
for pkg in wheel.dependencies['apt']:
f.write(pkg + '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment