On 16 November 2017 at 01:31, Nick Coghlan <[email protected]> wrote:

> On 16 November 2017 at 12:30, Orion Poplawski <[email protected]> wrote:
>
>> So - is it possible to build rpms with flit?
>>
>
>
There are already some packages that are built using flit:

$ dnf repoquery --disablerepo=\* --enablerepo=fedora-source --arch=src
--whatrequires python3-flit
python-entrypoints-0:0.2.2-7.fc26.src
python-testpath-0:0.3.1-1.fc26.src

The latter is a slightly better template as it doesn't contain any
workarounds for old versions of flit.
Another sample is python-jupyter-kernel-test (not sure why it didn't show;
it should be in F26, too).


> I haven't checked recently, but I believe flit still omits `setup.py` from
> its sdists by default, and the Python RPM macros are still expecting to be
> able to call that directly.
>
> If that's still the case, then the answer would be "Yes, but only if you
> make sure the sdist still contains a suitable setup.py shim".
>
> However, if flit is now adding its own shim implcitly, then the answer
> would just be "Yes".
>
>
There's no need for a shim; basically use flit to build a wheel and then
use the wheel installation macros instead.


> Cheers,
> Nick.
>
> --
> Nick Coghlan   |   [email protected]   |   Brisbane, Australia
>
>
-- 
Elliott
_______________________________________________
python-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to