libseccomp icon indicating copy to clipboard operation
libseccomp copied to clipboard

What is the best practice for publishing a Python package that depends on the seccomp Python library?

Open jfly opened this issue 10 months ago • 1 comments

As far as I can tell, libseccomp's Python library is not distributed on pypi.org. It is available through various package managers (such as nixpkgs and the AUR).

I'm building a Python library that depends on the libseccomp Python library. I'd like to publish it to pypi.org. Do you have any advice for how I should do that? Things I've learned:

  • IIUC, pypi.org doesn't it if you try to publish a package that depends on a package not in pypi: https://discuss.python.org/t/packages-installed-from-pypi-cannot-depend-on-packages-which-are-not-also-hosted-on-pypi/3736
  • There's a discussion about this here: https://www.reddit.com/r/learnpython/comments/m50llv/how_to_use_python_libraries_effectively_when_they/, which mentions guestfs-python and bcc. tl;dr: it looks like guestfs has documented a workaround, but bcc does not.
  • I stumbled across the pyseccomp package which is on pypi.org. I suppose that would work for me, but it looks like it's maintained by a third party and is out of date.

Thanks in advance!

jfly avatar Mar 05 '25 17:03 jfly

(Related: #61)

rusty-snake avatar Mar 05 '25 17:03 rusty-snake