DevHeads.net

%py3_build should accept options

Just want to get others opinions before filing a bug...

Currently %py3_build expands to:

$ rpm -E %py3_build
\
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\
/usr/bin/python3 setup.py build --executable="/usr/bin/python3 -s"
sleep 1

This does not allow passing of any options that I can tell... For now I'll
just paste this into my spec file.

Thanks,
Richard

Comments

Re: %py3_build should accept options

By Igor Gnatenko at 02/09/2019 - 09:46

You can do "%py3_build -- --some-cool-option".

Re: %py3_build should accept options

By Richard Shaw at 02/09/2019 - 09:51

On Sat, Feb 9, 2019 at 7:48 AM Igor Gnatenko <

I'll see about trying that.. I'm trying to build PySide2 but it's not
passing --verbose or -j12 to the cmake builds so it looks like it doesn't
matter anyway.

Thanks,
Richard

Re: %py3_build should accept options

By =?UTF-8?B?TWlyb... at 02/10/2019 - 13:27

On 09. 02. 19 14:51, Richard Shaw wrote:
Try defining %py_setup_args.

Re: %py3_build should accept options

By Richard Shaw at 02/18/2019 - 12:30

I finally had an occasion to try this but it still doesn't help because the
arguments are injected after setup.py and not after the install command,
which is what I needed.

That forced me to use the:

%py2_install -- --option1 --option2

method Igor suggested.

Thanks,
Richard

Re: %py3_build should accept options

By Richard Shaw at 02/17/2019 - 13:43

I see that in the packaging guidelines now but it could be made more
prominent.

Thanks,
Richard