-
Notifications
You must be signed in to change notification settings - Fork 115
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
pass options to build-backend
?
#444
Comments
By passing options, do you mean pass build-time options that should be decided on build-time (e.g. where to find some external library), or the |
Definitely not an issue. (Would have opened a gh-discussion, but that's not enabled on the repo yet.)
I see! I'll try to work my way through this. Thanks for the advice! |
It may also be worthwhile to ask if Nuitka is interested in including a PEP 517-compatible module in |
How would that work? Perhaps I can come up with a PR. |
You need to implement at least two functions in a module. See PEP 517 specification for the requirements. Once that’s done and included somewhere in [build-system]
requires = ["setuptools", "nuitka"]
build-backend = "nuitka.build_dist" and |
Nuitka already provides a build-backend here that one can use like build-backend = "nuitka.distutils.Build" What's the difference with your suggested approach? |
The nuitka build backend appears to be a thin wrapper around setuptools so I imagine that you would configure it as you would setuptools. |
Yes, if that is the case, you can use the https://pypa-build.readthedocs.io/en/stable/#python--m-build---config-setting option. See #328 for eg. |
I'm trying to play around with a local Nuitka version to see of the |
Run build with the |
Not sure if this is the correct repo for the issue.
I'm using Nuitka to build some of my projects and specify it in
pyproject.toml
viaI'd now like to pass some options to
nuitka.distutils.Build
, but I don't know if this is possible at all frombuild
's point of view.The text was updated successfully, but these errors were encountered: