[ pycrypto-Patches-1849383 ] pycrypto and case-insensitive file systems

"SourceForge.net" <[email protected]> Wed, 12 Dec 2007 07:00:45 -0800
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Patches item #1849383, was opened at 2007-12-12 16:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=320937&aid=1849383&group_id=20937

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Haubenwallner (mhaubi)
Assigned to: Nobody/Anonymous (nobody)
Summary: pycrypto and case-insensitive file systems

Initial Comment:
Using pycrypto-2.0.1 on case-insensitive file system (like Windows - encountered problem with python-2.4.2 on Interix) does not work, because Hash/MD5.py does 'import md5'.

Now python starts the search for 'md5' in same directory as the 'import' statement resides, and because of case-insensitive filesystem, it finds MD5.py again.

Same is for SHA.py, which does 'import sha', resulting in importing SHA.py again.

What does help here is to do the actual 'import md5' in a different directory, not containing MD5.py.

Attached patch creates subdir Hash/extmd5/__init__.py, doing the actual 'import md5', which lets python find the right 'md5' module, while Hash/MD5.py does 'import extmd5'.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=320937&aid=1849383&group_id=20937

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php