-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rpm package python bindings #380
Rpm package python bindings #380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a python packaging expert, but I fear that we will not be able to build the package in Fedora if we use deprecated macros.
If we can't use the recommended python RPM macros with current build structure, which mixes C and python projects, then I'd suggest to have a different spec file for python package or completely different project.
Added the pyhirte python module to the hirte spec for building an rpm package. For this, switched to setup.py (instead of pyproject.toml) due to issues with rpm pyproject macros. Signed-off-by: Michael Engel <mengel@redhat.com>
Signed-off-by: Michael Engel <mengel@redhat.com>
@mwperina Mixing C and Python projects does not impact each other here. I migrated (again) from |
IMO, If upgrade doesn't work, we can always "fly" in the first moment with something which works. Lets remember, we started with manually written python module and now we have a fancy auto generation module. Users will always appreciate initial features available. Or in other words, merge early, merge often. |
Well, partially it is, because we are using non-standard project structure, that might be the reason why the preferred python macros doesn't work
This is not about upgrade, we want hirte packages for latest Fedora and El9, so we need to be able to adapt to different python versions (3.9 on EL9, 3.11 on FC37/38, 3.12 on rawhide). If will try to take a look at the end of this week if we can make the spec working with non-deprecated macros ... |
Yes, its a non-standard project structure. However, in the spec I simply copy the
Would El9 etc. reject the rpm macros? The built .whl is the same for both approaches. Not sure about the versions, though. I think for 3.12 the setup.py support is removed.
That would be great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge now and if needed let's improve later
This PR
pyhirte
python module as a package to the hirte.specpyhirte.ext