On 2/22/19 12:01 PM, Petr Viktorin wrote:
On 2/18/19 9:19 PM, Ben Cotton wrote:
>
https://fedoraproject.org/wiki/Changes/BuildRequires_Generators
>
> = BuildRequires Generators =
>
> == Summary ==
> Add possibility to generate build-time dependencies within RPM spec
> file and teach RPM and mock how to handle this.
I am very excited about this change. Count with me for Python. Is there
a (draft) API to start coding against?
In Python, there's an effort to enable things like this generator, e.g.
[PEP 517].
Missing footnote:
[PEP 517]:
https://www.python.org/dev/peps/pep-0517/
specifically:
https://www.python.org/dev/peps/pep-0517/#get-requires-for-build-wheel
Here, gathering BuildRequires is a two-step process:
- the "build backend" is specified in declarative metadata;
- then the build backend can query backend-specific metadata for
additional BuildRequires.
Is that possible with the current plans?
BTW: New versions of Python's usual build system (setuptools/setup.py)
will be forward compatible with PEP 517. Please do not write generators
that use setup.py directly.