Skip to content

Conversation

gotmax23
Copy link
Contributor

@gotmax23 gotmax23 commented Apr 7, 2024

@Rogdham
Copy link
Owner

Rogdham commented Apr 7, 2024

Hello @gotmax23 and thank you for your patch!

I understand that the argument you changed is a positional or keyword parameter (e.g. inspect.Parameter.POSITIONAL_OR_KEYWORD), so having the wrong name breaks any build system that uses the parameter as a keyword parameter.

Could you tell a bit more about the context in which you are having an issue with this? For example, if your build system fails to build pyzstd as a result, please say which build system you are using and how you are calling it.

This will be helpful not only to reproduce, but also to give a proper importance level to this fix.

Thank you!

@gotmax23
Copy link
Contributor Author

gotmax23 commented Apr 7, 2024

Hello @gotmax23 and thank you for your patch!

Sure!

Could you tell a bit more about the context in which you are having an issue with this? For example, if your build system fails to build pyzstd as a result, please say which build system you are using and how you are calling it.

I am using https://src.fedoraproject.org/rpms/pyproject-rpm-macros which is the build frontend tool we use for building python project RPMs for Fedora Linux (and Red Hat Enterprise Linux and CentOS and others). I am working on importing pyzstd into the official Fedora repositories.

@Rogdham Rogdham merged commit dbd4498 into Rogdham:master Apr 7, 2024
@Rogdham
Copy link
Owner

Rogdham commented Apr 7, 2024

Thank you for the explanations!

This will be shipped in next release (current target is by the end of May).

@Rogdham
Copy link
Owner

Rogdham commented May 20, 2024

Fixed in version 0.16.0 that has just been released 🚀

jollaitbot pushed a commit to sailfishos-mirror/pyproject-rpm-macros that referenced this pull request Jun 21, 2025
PEP 517 says that the argument should be named config_settings but
pip/pyproject-hooks and other build frontends just pass it as a
positional argument, so some build backends name this argument other
things. Even though those build backends are wrong, it still makes sense
to align pyproject-rpm-macros with what the other frontends do.

Ref: PyO3/maturin#2612
Ref: Rogdham/pyzstd#2
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.

2 participants