Skip to content

macros/python: Remove python2 macros and add pyproject macros#142

Open
EbonJaeger wants to merge 1 commit into
mainfrom
python-macros-update
Open

macros/python: Remove python2 macros and add pyproject macros#142
EbonJaeger wants to merge 1 commit into
mainfrom
python-macros-update

Conversation

@EbonJaeger
Copy link
Copy Markdown
Member

Summary

Now that Solus no longer supports anything Python 2, we can remove the old Python 2 macros.

This also addresses an old annoyance where our Python macros try to be a do-all that support PEP517 and non-PEP517 in the same invocation. Some software doesn't play nice and ship files indicating both ways, which confuses the macro, and the wrong commands are run. Making the pyproject macros explicit eliminates having to do things like rm setup.py or rm pyproject.toml during the package build.

Another very common pattern in packages is %python3_test pytest. We can shorten that by having just a %pytest macro.

Lastly, adding %python3_sitepackages% GREATLY shortens lines in package files that currently have to specify the entire path manually.

Test Plan

Build reuse with all of the new macros, and see that the resulting .eopkg file contains the correct files in the correct paths.

Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant