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.

Add support for using `bdist_nuitka` without setup.py, i.e. pure pyproject setup

See original GitHub issue

One can build Nuitka’d wheels via

python3 setup.py bdist_nuitka

Is it possible to do the same in a PEP 517/518 setting, i.e., without a setup.py, but with a setup.cfg and a pyproject.toml,

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Nov 26, 2021

Yup, seems to work, less than 20 lines of code. I will write something for the User Manual as part of my roadmap action for the standard thing, but basically you need to put this:

requires = ["setuptools>=42", "wheel", "nuitka"]
build-backend = "nuitka.distutils.Build"

The build backend will be part of 0.6.18 likely. I need to figure out test integration still.

0reactions
kayhayencommented, Dec 8, 2021

@bsvedin make a new issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to build a source distribution without using setup.py file?
This is how I build my PEP 517-compatible packages. This requires that your project have a pyproject.toml , and the pyproject.toml must have ......
Read more >
A Practical Guide to Setuptools and Pyproject.toml
An example driven guide to setting up and building a python package using Setuptools together with pyproject.toml.
Read more >
Understanding setup.py, setup.cfg and pyproject.toml in Python
This blog post is designed to clarify my thinking around installing Python packages and the use of setup.py, setup.cfg and pyproject.toml ...
Read more >
Configuring setuptools using pyproject.toml files
Configuring setuptools using pyproject.toml files# ... Starting with PEP 621, the Python community selected pyproject.toml as a standard way of specifying project ...
Read more >
Removing setup.cfg and setup.py from the packaging tutorial
TL;DR: is it time to just use pyproject.toml, and which build backend ... (py|cfg) and i was able to pip install -e ....
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