• Re: How to include python libraries not in debian for building a debian

    From =?UTF-8?b?2K/Yp9mG24zYp9mEINio2YfYs@21:1/5 to All on Mon Jun 30 10:30:01 2025
    Hey Aryan,

    I hope you�re doing well!

    Just a quick note: All packages in Debian should be buildable offline
    using only Debian packages. This presents a great opportunity for you
    to contribute by adding packages for the missing libraries. It would
    really enhance the ecosystem!

    Let me know if you need any help with the process!

    Best,

    --
    Danial Behzadi


    <div id="geary-body" dir="auto"><p>Hey Aryan,<br><br></p>
    <p>I hope you�re doing well!</p>
    <p>Just a quick note: All packages in Debian should be buildable offline using only Debian packages. This presents a great opportunity for you to contribute by adding packages for the missing libraries. It would really enhance the ecosystem!</p>
    <p>Let me know if you need any help with the process!<br><br></p> <p>Best,<br></p></div><div id="geary-quote" dir="auto">--<br>Danial Behzadi</div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon McVittie@21:1/5 to Aryan Karamtoth on Mon Jun 30 10:50:01 2025
    On Mon, 30 Jun 2025 at 06:09:07 +0000, Aryan Karamtoth wrote:
    I'm working on creating a package for a software that's built for GNOME GTK4 + >Libadwaita using Python. The problem is that the software uses a lot of >dependencies mostly python libraries that aren't on debian but only on pip. I >need these libraries to be put into debian/control.

    Since they aren't on debian, how do I proceed with this?

    If a required library isn't in Debian, the process is to package it
    first, and then use it for your higher-level package.

    The missing packages are:

    • Python Pillow

    This is definitely in Debian, under the name python3-pil.

    The general rule is that if you would write "import Foobar" in your
    Python code, then the Debian package is named python3-foobar. Reference: https://www.debian.org/doc/packaging-manuals/python-policy/

    • ODFpy (python library)

    Looks like python3-odf is probably this

    • PyICU (python library)

    Looks likely to be python3-icu

    • Openai (python lib)

    Probably python3-openai?

    • LibSpelling (by GNOME)

    gir1.2-spelling-1, which you can use via python3-gi

    • Youtube-Transcript-API (python library)
    • MarkItDown (python lib)
    • DuckDuckGo-search (python lib)

    These don't seem to be in Debian, if they're mandatory dependencies then
    either you or someone else will need to package them first.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)