This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rwgk
Recipients rwgk
Date 2008-06-23.19:38:27
SpamBayes Score 3.3415918e-07
Marked as misclassified No
Message-id <1214249909.74.0.55822821087.issue3183@psf.upfronthosting.co.za>
In-reply-to
Content
It would be very useful to add two lines to Modules/Setup.dist:

Index: Modules/Setup.dist
===================================================================
--- Modules/Setup.dist  (revision 64489)
+++ Modules/Setup.dist  (working copy)
@@ -249,6 +249,8 @@
 # The _sha module implements the SHA checksum algorithm.
 # (NIST's Secure Hash Algorithm.)
 #_sha shamodule.c
+#_sha256 sha256module.c
+#_sha512 sha512module.c


 # SGI IRIX specific modules -- off by default.


Background:

- Python built on machine A and distributed to end-users.
  Machine A happens to have the OpenSSL libraries.

- End-user runs our package incl. the pre-built Python on
  machine B, which happens not to have the OpenSSL libraries,
  or an incompatible version.

- hashlib imports _hashlib, which fails because of the
  OpenSSL problem.

- hashlib tries to fall back to generic sha and md5 modules.
  I had _sha and md5 enabled in Modules/Setup.dist, but
  didn't know Python 2.5 needs more.

I found this out the hard way. It would be helpful to at least
have the extra two comments as suggested above. I think it would
be even better to not comment out the md5 and sha modules in
the original Python distribution since it just adds about 200k
of .o files (Linux). That's very cheap compared to the loss
in time if people have to figure out why import hashlib is
failing and how to work around the problem.
History
Date User Action Args
2008-06-23 19:38:29rwgksetspambayes_score: 3.34159e-07 -> 3.3415918e-07
recipients: + rwgk
2008-06-23 19:38:29rwgksetspambayes_score: 3.34159e-07 -> 3.34159e-07
messageid: <1214249909.74.0.55822821087.issue3183@psf.upfronthosting.co.za>
2008-06-23 19:38:28rwgklinkissue3183 messages
2008-06-23 19:38:28rwgkcreate