这是indexloc提供的服务,不要输入任何密码
Skip to content

enhance(main/gpgme): build Python bindings #25336

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TomJo2000
Copy link
Member

This was requested by user @kassiusyoke in Discord.

The subpackage is probably a bit broken at this point.
I just slapped the entire lib/python${TERMUX_PYTHON_VERSION} in there.

swig may also only need to be present on the build host, I've put it in the BUILD_DEPENDS just in case it makes a difference for on-device builds.
image
I'm not sure if the EGG-INFO directory or easy-install.pth should be part of the subpackage, or if this needs to be repacked in some way, and I'm too tired to wanna find out right now.

CC: @robertkirkman @licy183

Copy link
Contributor

@robertkirkman robertkirkman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I test this, python -c "import gpg" works when using this, and I don't see anything here that would conflict with or depend on anything in the other PR mentioned.

@TomJo2000 TomJo2000 marked this pull request as ready for review July 12, 2025 11:27
@TomJo2000
Copy link
Member Author

I'd like to merge this in ~6 hours if there's no further comments.

@licy183
Copy link
Member

licy183 commented Jul 12, 2025

easy-install.pth should not be managed by apt. It is better to append its content in postinst, or let this package managed by pip.

@TomJo2000
Copy link
Member Author

easy-install.pth should not be managed by apt. It is better to append its content in postinst, or let this package managed by pip.

I can't seem to find any other examples for packages where we are handling easy-install.pth as part of the package build.
How should that work?
GPGME's python bindings do seem to be a bit... odd... as far as Python modules go.
http://files.au.adversary.org/crypto/gpgme-python-howto.html#gpgme-python-install

@licy183
Copy link
Member

licy183 commented Jul 13, 2025

FYI: 2c74f2a

But I think we should find a way to make it managed by pip.

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.

3 participants