Bug 1821492 - %pyproject macros only work with the "main" Python version
Summary: %pyproject macros only work with the "main" Python version
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pyproject-rpm-macros
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1821489
TreeView+ depends on / blocked
 
Reported: 2020-04-06 23:26 UTC by Miro Hrončok
Modified: 2020-08-19 12:06 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-19 12:06:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-04-06 23:26:35 UTC
When %__python3 is redefined to something different than /usr/bin/python3, %pyproject macros will fail to function. Several problems:

 1) %pyproject_buildrequires will run on %__python3 but it will produce python3dist() buildrequires (see bz1821486 for problems with that) and will BR python3-devel

 2) the macro package runtime depends on hardcoded list of python3 packages (from the main stack), when Fedora 30 goes EOL we should only support using the dynamic buildrequires once (1) is fixed (or we should only preserve the manual requires on Fedora 30)

 3) %tox will try to invoke /usr/bin/tox, but `tox --current-env` can only work if it runs tox via `%{__python3} -m tox`


Most likely other issues, this is not a full analysis.

Comment 1 Lumír Balhar 2020-07-21 10:27:02 UTC
I am trying to build an alternative Python stack (3.8) on Fedora rawhide in COPR (https://copr.fedorainfracloud.org/coprs/lbalhar/alternative_stack/) and fix all problems along the way.

There is currently nothing more on top of the points mentioned in the first comment.

Comment 2 Lumír Balhar 2020-07-21 13:25:27 UTC
Fixes for all three points above and one more: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/65

Comment 3 Ben Cotton 2020-08-11 13:16:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.


Note You need to log in before you can comment on or make changes to this bug.