nix-init icon indicating copy to clipboard operation
nix-init copied to clipboard

pyproject build requires build-system definition

Open mweinelt opened this issue 2 years ago • 4 comments

A pyproject.toml file is only useful for building a python project, when it has a build-system section and a build-backend defined.

:x: https://github.com/dfunckt/django-rules/blob/master/pyproject.toml :heavy_check_mark: https://github.com/pyca/cryptography/blob/main/pyproject.toml#L1-L10

Don't offer it, when the section does not exist.

mweinelt avatar May 07 '23 23:05 mweinelt

https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#fallback-behaviour

Perhaps it should just recommend setuptools over pyproject if it is absent?

figsoda avatar May 31 '23 23:05 figsoda

Apparently you can just use pyproject format if no build-system is present, but either setup.cfg or setup.py are. In either case you then need setuptools in nativeBuildInputs.

mweinelt avatar Jun 28 '23 13:06 mweinelt

In either case you then need setuptools in nativeBuildInputs.

fixed in https://github.com/nix-community/nix-init/commit/22e325bece6fdd557457072cec365f6d5dfefa77

figsoda avatar Jun 29 '23 22:06 figsoda