mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
setup: allow an older version of pycryptopp if we are not on x86 or amd64 architecture (which are the architectures on which older versions of Crypto++ had bugs in asm implementations of AES and SHA-256)
This commit is contained in:
parent
aa19424c9f
commit
cb8ab03ede
@ -17,10 +17,6 @@ install_requires=[
|
|||||||
"foolscap[secure_connections] >= 0.5.1",
|
"foolscap[secure_connections] >= 0.5.1",
|
||||||
"Nevow >= 0.6.0",
|
"Nevow >= 0.6.0",
|
||||||
|
|
||||||
# pycryptopp v0.5.20 fixes bugs in SHA-256 and AES (from Crypto++
|
|
||||||
# revisions 470, 471, 480, 492).
|
|
||||||
"pycryptopp >= 0.5.20",
|
|
||||||
|
|
||||||
# Needed for SFTP. pyasn1 is needed by twisted.conch in Twisted >= 9.0.
|
# Needed for SFTP. pyasn1 is needed by twisted.conch in Twisted >= 9.0.
|
||||||
# pycrypto 2.2 doesn't work due to https://bugs.launchpad.net/pycrypto/+bug/620253
|
# pycrypto 2.2 doesn't work due to https://bugs.launchpad.net/pycrypto/+bug/620253
|
||||||
"pycrypto == 2.0.1, == 2.1, >= 2.3",
|
"pycrypto == 2.0.1, == 2.1, >= 2.3",
|
||||||
@ -30,6 +26,17 @@ install_requires=[
|
|||||||
#"windmill >= 1.3",
|
#"windmill >= 1.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
import platform
|
||||||
|
if platform.machine().lower() in ['i386', 'x86_64', 'amd64', '']:
|
||||||
|
# pycryptopp v0.5.20 fixes bugs in SHA-256 and AES on x86 or amd64
|
||||||
|
# (from Crypto++ revisions 470, 471, 480, 492). The '' is there
|
||||||
|
# in case platform.machine is broken and this is actually an x86
|
||||||
|
# or amd64 machine.
|
||||||
|
install_requires.append("pycryptopp >= 0.5.20")
|
||||||
|
else:
|
||||||
|
install_requires.append("pycryptopp >= 0.5")
|
||||||
|
|
||||||
|
|
||||||
# Sqlite comes built into Python >= 2.5, and is provided by the "pysqlite"
|
# Sqlite comes built into Python >= 2.5, and is provided by the "pysqlite"
|
||||||
# distribution for Python 2.4.
|
# distribution for Python 2.4.
|
||||||
import sys
|
import sys
|
||||||
|
Loading…
Reference in New Issue
Block a user