Article View: linux.debian.maint.python
Article #84Re: Installing ‘python-apt-binary’ from PyPI using ‘python3 -m pip’
From: Andrey Rakhmatullin
Date: Mon, 30 Nov 2026 07:00
Date: Mon, 30 Nov 2026 07:00
63 lines
4080 bytes
4080 bytes
--mbmdKnSJw6KYS5Wy Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 30, 2026 at 04:38:34PM +1100, Ben Finney wrote: >I'm attempting to install Debian's APT bindings for Python, in a >virtualenv and/or =E2=80=98pyproject.toml=E2=80=99 project dependencies, s= o that >programs can (for example) `import apt_pkg`. How should that be done? As it's not on PyPI there is no official way to do this. >>From what I can tell, the =E2=80=98python-apt-binary=E2=80=99 PyPI entry = is what I need ><URL: https://pypi.org/project/python-apt-binary/> (though its metadata >is sparse and unhelpful). (I wouldn't install random PyPI packages only because the name seems=20 correct) >The <URL: https://pypi.org/project/python-apt-binary/#history> release >history of the PyPI entry shows sporadic entries, with version =E2=80=9C3.= 0.0=E2=80=9D >the latest, on 2026-09-15. Why does that not match the specified >=E2=80=98python-apt-binary=E2=80=99 request? Likely because the only published wheel is 3.13-only, looking at the file= =20 name. >How should I be getting this dependency satisfied in a Python project? I wouldn't, considering that upstream has not done the necessary work for= =20 that. You can try installing from=20 git+https://salsa.debian.org/apt-team/python-apt/ directly (I haven't=20 tried). --=20 WBR, wRAR --mbmdKnSJw6KYS5Wy Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmsNHJUACgkQM2L3AxpJ kuG+FRAApjk9oGRkgo1aJK0TAwOYRDs7vXfFs9OXN40jm5B4gW4qcixrhosUZOxS niu13/GTDnp7u+ZFpbwKsIU40iQEiMOEOCHMDNJSes8yDIwLX3rEdHhNx5KfyIxp +sCNoFT5f3es5uoIEe5WRn26Gg2rVq7OvSJLDeBxOO1PmlFdqKZ6pWcQoMo+Qncb CM9pot3Z7qnRVUTet50MIbrXTNYwH1lLr0ZYRQ7v4h/RY2pcTbSprwaUMfc4xnV0 vofTixq8jNSVBolhh7vOuBOe3pVDSIGVohxrK3dWTGYVPxFz8v+lNq5PfK0epAqB AyDdudVuGDEw//6tvQRtBFp+eHBx2oZv+M3kiREOaR7L3M9noC02rmqHN5QzLkKK nCB43hDvSIe42KVNKIvf3BPRI3bsvyvjh98xPuxkJWzNOOOx2/WJa2L+NMX8pi5L Ua+jodoMTyEYkPwz0ls6IoFO/ie7UCbx2Jq4Or3WYkgP++xcVgLqbYeog553dHDG zbvzNcXWU2MMAKyv1ru6X/C1TP7ZO8CF1BvQJCxPZ94XfAXuRcaEn5N1aUSbW0TT 1C1Uus1yZUVgVJUMt8drOgfvYKhy2limrM86JbO0ViEReCvpveh5A0Hpt2/CcTld fotTRF1xmO0GuVy+e9+c94M6KiI9E/K9UaUhPHgRgI/IUEf1nfM= =mkCc -----END PGP SIGNATURE----- --mbmdKnSJw6KYS5Wy--
Technical Details
Message-ID:
<O53wJ-f4ld-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<O52hj-f3Kd-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Andrey Rakhmatullin <wrar@debian.org> Newsgroups: linux.debian.maint.python Subject: Re: Installing ‘python-apt-binary’ from PyPI using ‘python3 -m pip’ Date: Mon, 30 Nov 2026 08:00:01 +0100 Message-ID: <O53wJ-f4ld-1@gated-at.bofh.it> References: <O52hj-f3Kd-3@gated-at.bofh.it> X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Nov 30 06:50:14 2026 Old-Return-Path: <wrar@debian.org> X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mbmdKnSJw6KYS5Wy" Content-Disposition: inline X-Debian-User: wrar X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24209 List-ID: <debian-python.lists.debian.org> List-URL: <https://lists.debian.org/debian-python/> List-Archive: https://lists.debian.org/msgid-search/aw0cldKJqmkEF6u9@belkar.wrar.name Approved: robomod@news.nic.it Lines: 63 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 30 Nov 2026 11:49:58 +0500 X-Original-Message-ID: <aw0cldKJqmkEF6u9@belkar.wrar.name> X-Original-References: <87zeuqop45.fsf@benfinney.id.au>