Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for complex wheel builds #48

Merged
merged 90 commits into from
Nov 18, 2023
Merged

Better support for complex wheel builds #48

merged 90 commits into from
Nov 18, 2023

Conversation

jvolkman
Copy link
Owner

Adds support for more complex wheel builds, including:

  • data and native_deps (CcInfo) depenencies
  • pre_build_hooks, executed before a wheel build that can modify the build environment
  • post_build_hooks, executed after a wheel build that can modify the built artifact (e.g., run auditwheel)
  • path_tools, a list of tools that are added to the build environment's PATH
  • configurable environment variables and PEP 517 config settings

With these features, it becomes possible to build something like psycopg2 which:

  1. depends on libpq (from postgres)
  2. calls pg_config to learn information about libpq during setup.py invocation

See examples/external_linking/deps for numpy and psycopg2 examples.

@jvolkman jvolkman merged commit 30a24fd into main Nov 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant