[Python-modules-team] Bug#886291: pycryptodome: python3-pycryptodome contains pycryptodomex instead of pycryptodome
Alexis Murzeau
amubtdx at gmail.com
Wed Jan 3 23:04:34 UTC 2018
Source: pycryptodome
Version: 3.4.7-1
Severity: normal
Dear Maintainer,
While packaging a python program (streamlink) which use pycryptodome
with a fallback to pycrypto, I found that the package
python3-pycryptodome contains the pycryptodomex module instead of
pycryptodome.
This is because the packages python3-pycryptodome and
python-pycryptodome are built by creating the ".separate_namespace" file.
This ".separate_namespace" file switch the built python module from
pycryptodome to pycryptodomex.
So python3-pycryptodome and python-pycryptodome packages contain
pycrytodomex module instead of pycryptodome.
The difference between both is that pycryptodome installs its modules
under the Crypto package and pycryptodomex installs its modules under
the Cryptodome package.
Which means pycryptodome can be drop-in replacement for pycrypto but
pycryptodomex cannot.
I suggest that:
- Existing pythonX-pycryptodome packages build pycryptodome instead of
pycryptodomex,
- Add new binary packages pythonX-pycryptodomex containing
pycryptodomex.
As pycrytodome contains the same python package (Crypto) as pycrypto,
the two package are in conflict. I'm not sure what's the best way to
handle that:
- Don't make any pythonX-pycryptodome packages and just rename the
existing one to pythonX-pycryptodomex (so the other name is still
available in case it becomes needed)
- Make a conflicts dependency on pythonX-crypto in pythonX-pycryptodome
- Eventually think about a transition from pycrypto to pycryptodome
(pycrypto seems dead, last release was in 2013 according to github)
As a side note, I also found that the built manpages are not packaged in
any of the binary package. I don't think it's expected as d/rules
explicitly builds manpages.
Thanks in advance,
Alexis Murzeau
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--
Alexis Murzeau
PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20180104/2483f5ea/attachment-0001.sig>
More information about the Python-modules-team
mailing list