[Python-checkins] distutils2: Kludge for hashlib
eric.araujo
python-checkins at python.org
Fri Nov 25 16:23:59 CET 2011
http://hg.python.org/distutils2/rev/4bc6cdecea33
changeset: 1265:4bc6cdecea33
user: Éric Araujo <merwok at netwok.org>
date: Fri Nov 25 12:42:35 2011 +0100
summary:
Kludge for hashlib
files:
setup.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -194,8 +194,13 @@
sources=['distutils2/_backport/md5module.c',
'distutils2/_backport/md5.c'],
depends=['distutils2/_backport/md5.h']) )
- if openssl_ver < 0x908000:
- # OpenSSL doesn't do these until 0.9.8 so we'll bring our own
+ # XXX always compile sha256 and sha512 to have a working hashlib (maybe
+ # I (merwok) can't compile _ssl and thus _hashlib for 2.4, maybe because of
+ # Debian multiarch, even though I set all needed build vars (and can
+ # compile _ssl for 2.6 for example)
+ if True:
+ #if openssl_ver < 0x908000:
+ # # OpenSSL doesn't do these until 0.9.8 so we'll bring our own
exts.append(Extension('distutils2._backport._sha256',
['distutils2/_backport/sha256module.c']))
exts.append(Extension('distutils2._backport._sha512',
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list