pycryptodome
pycryptodome copied to clipboard
Not possible to install PyCryptodome under alternative package name ("Cryptodome") with Windows Precompiled
I actually mentioned this already in another recent ticket, but since this problem was not reflected in that ticket's title, and since it is not a good practice to report multiple issues in the same ticket in general, I'm hereby creating a new ticket for this issue alone. That being said, here goes:
It is currently not possible to install the Windows Precompiled version of PyCryptodome (i.e. using the wheel files) under the alternative package name ("Cryptodome"), but rather only under the "Crypto" package name which collides with PyCrypto.
For more details, please see the following StackOverflow question about this:
http://stackoverflow.com/questions/37504622/how-to-install-a-python-wheel-under-an-alternative-package-name-in-my-specific
It would therefore be super if you could provide wheel files also for installing under the "Cryptodome" package name.
(to make matters even worse, your documentation falsely claims says that the Windows Precompiled version will install under the "Cryptodome" package name, which is what my other recent ticket was about).
The name of the package for the Cryptodome namespace is "pycryptodomex" and for the Crypto namespace it is "pycryptodome". The documentation about the windows installation is about the the "pycryptodomex" package. The documentation states this correctly:
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. You can test everything is right with:
python -m Crypto.SelfTest
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
You can test everything is right with:
python -m Cryptodome.SelfTest
In this case, all modules are installed under the Cryptodome package. PyCrypto and PyCryptodome can coexist.
Yes, I know that. The problem is that it is not possible to install it as a wheel with that command on Python 3.4 (see the other ticket for more details), and therefore I had to install the provided wheel file from the PyPi page manually, like so:
pip install c:\some\path\name-of-wheel-file.whl
(please see my StackOverflow question about this for more details)
And those wheel files you provide on the PyPi page in turn seem to use only the "Crypto" package name, right?
Or is there a way to specify a separate package name even though you're manually installing a wheel file after all? In that case you can enter that as an accepted answer on my StackOverflow question as a bonus if you want. ;-)
EDIT:
I just noticed your comment in the other ticket about the alternative package name having its very own PyPi page, so that would be the solution to manually install the library then, thanks!
I think that quite many people are gonna be confused by this though, since the name of the "library" is still PyCryptodome, and it is not split up into two separate entities/pages at any other point in the documentation or website etc. You might therefore consider adding this fact to the installation docs more explicitly.