bzr-windows team mailing list archive
-
bzr-windows team
-
Mailing list archive
-
Message #00354
Re: bzr 2.2 installer
John Arbash Meinel пишет:
Alexander Belchenko wrote:
Hi Gary,
While I've tested new installer for bzr 2.2 and bzr.exe containing
Python 2.6 inside I've noticed DeprecationWarning caused by PyCrypto,
like that:
C:\Python26\lib\site-packages\Crypto\Hash\SHA.py:6: DeprecationWarning:
the sha module is deprecated; use the hashlib module ins
tead
from sha import *
C:\Python26\lib\site-packages\Crypto\Hash\MD5.py:6: DeprecationWarning:
the md5 module is deprecated; use hashlib instead
from md5 import *
I can't find newer PyCrypto installer for Python 2.6 with this problem
fixed, so maybe we need to patch PyCrypto installed on the machine where
installer is built to avoid this warnings. They're very boring because
they're pop-up on every bzr+ssh/sftp access via paramiko (our default on
Windows).
Alexander
There is a newer pycrypto (2.1.?) but it requires a patched paramiko to
avoid a different deprecation warning.
I found newer pycrypto here:
http://www.voidspace.org.uk/python/modules.shtml
http://www.voidspace.org.uk/downloads/pycrypto-2.1.0.win32-py2.6.zip
And it indeed has the different warning:
C:\Python26\lib\site-packages\Crypto\Util\randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases. See http://www.pycrypto.org/randpool-broken
RandomPool_DeprecationWarning)
However:
1) bzr-*.final suppresses all deprecation warnings anyway.
There is no final installer yet, that's why I see the warnings.
2) Gary already has a patched paramiko that he put together (and
hopefully submitted upstream)
Ok, at least upgrading pycrypto on the build machine will be nice to have.
--
All the dude wanted was his rug back
References