question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pass options to `build-backend`?

See original GitHub issue

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 via

[build-system]
requires = ["setuptools", "nuitka"]
build-backend = "nuitka.distutils.Build"

I’d now like to pass some options to nuitka.distutils.Build, but I don’t know if this is possible at all from build’s point of view.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
laydaycommented, Mar 10, 2022

Run build with the -n flag.

1reaction
uranusjrcommented, Mar 10, 2022

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 nuitka (say nuitka.build_dist), you’d be able to declare a pyproject.toml like this

[build-system]
requires = ["setuptools", "nuitka"]
build-backend = "nuitka.build_dist"

and python -m build will call those two functions under the hood to generate a tar.gz and a whl.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PEP 517 – A build-system independent format for source trees
The actual building is done by each source tree's build backend. ... they pass options which make sense for the particular build backend...
Read more >
Passing Parameters from Frontend to Backend (NodeJS)
In this video I show you how to pass parameters from a React Frontend to a NodeJS backend. This is Part 2 to...
Read more >
How to pass parameters rendered from backend to angular2 ...
As an example, suppose you have a multi-tenanted solution where the site info relies on the domain name it's being served from. This...
Read more >
Configuring build settings - AWS Amplify Hosting
Sign in to the AWS Management Console and open the Amplify console . · Choose the app to configure diff based backend builds...
Read more >
Build options - The Meson Build system
enabled is the same as passing required : true . · auto is the same as passing required : false . · disabled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found