[Bug 1759985] Re: can python-crypto and pycryptodome co-exist?

Steve Langasek steve.langasek at canonical.com
Fri Mar 30 04:22:48 UTC 2018


Despite being listed upstream as a "drop-in replacement" for python-
crypto, that is not how it's packaged in Debian/Ubuntu.  The cryptodome
package installs a 'Cryptodome' module, not a 'Crypto' module; the two
can be successfully coinstalled, and I see nothing that would prevent
them from being used on the same system.

$ python3
Python 3.6.5rc1 (default, Mar 14 2018, 06:54:23) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Crypto
>>> import Cryptodome
>>> 
$

The autopkgtests of both packages also pass fine with both modules
installed.

** Changed in: python-crypto (Ubuntu)
       Status: New => Invalid

** Changed in: pycryptodome (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to pycryptodome in Ubuntu.
https://bugs.launchpad.net/bugs/1759985

Title:
  can python-crypto and pycryptodome co-exist?

Status in pycryptodome package in Ubuntu:
  Invalid
Status in python-crypto package in Ubuntu:
  Invalid

Bug description:
  Hello,

  The pycryptodome docs have:

  > The installation procedure depends on the package you want the library in.
  > PyCryptodome can be used as:
  >$
  > #. **a drop-in replacement for the old PyCrypto library**.
  >    You install it with::
  >$
  >        pip install pycryptodome
  > $$$
  >    In this case, all modules are installed under the ``Crypto`` package.
  > $$$$
  >    One must avoid having both PyCrypto and PyCryptodome installed
  >    at the same time, as they will interfere with each other.
  >$
  >    This option is therefore recommended only when you are sure that
  >    the whole application is deployed in a ``virtualenv``.
  >$
  > #. **a library independent of the old PyCrypto**.
  >    You install it with::
  >$
  >        pip install pycryptodomex
  > $$$
  >    In this case, all modules are installed under the ``Cryptodome`` package.
  >    PyCrypto and PyCryptodome can coexist.
  >$

  Currently there's no Breaks or Conflicts lines in either package:

  $ grep -e Break -e Conflict pycryptodome/bionic/pycryptodome-3.4.7/debian/* python-crypto/bionic/python-crypto-2.6.1/debian/*
  grep: pycryptodome/bionic/pycryptodome-3.4.7/debian/patches: Is a directory
  grep: pycryptodome/bionic/pycryptodome-3.4.7/debian/source: Is a directory
  grep: pycryptodome/bionic/pycryptodome-3.4.7/debian/tests: Is a directory
  grep: pycryptodome/bionic/pycryptodome-3.4.7/debian/upstream: Is a directory
  python-crypto/bionic/python-crypto-2.6.1/debian/changelog:    - Remove obsolete Breaks+Replaces
  python-crypto/bionic/python-crypto-2.6.1/debian/changelog:  * Drop obsolete Conflicts/Replaces with python2.3-crypto and
  python-crypto/bionic/python-crypto-2.6.1/debian/changelog:    - Add Breaks python{,3}-keyring (<= 0.7.1-1) to python{,3}-crypto.
  grep: python-crypto/bionic/python-crypto-2.6.1/debian/patches: Is a directory
  grep: python-crypto/bionic/python-crypto-2.6.1/debian/source: Is a directory
  grep: python-crypto/bionic/python-crypto-2.6.1/debian/tests: Is a directory

  
  Can these two packages be installed side-by-side? Or is this something 
  that matters only to 'pip' installs?

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pycryptodome/+bug/1759985/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list