Browse Source

better workaround for tlslite issue

283
ThomasV 10 years ago
parent
commit
fbb0801d15
  1. 3
      lib/x509.py
  2. 3
      setup.py

3
lib/x509.py

@ -36,6 +36,9 @@ except ImportError:
sys.exit("Error: tlslite does not seem to be installed. Try 'sudo pip install tlslite'")
# workaround https://github.com/trevp/tlslite/issues/15
tlslite.utils.cryptomath.pycryptoLoaded = False
from pyasn1.codec.der import decoder, encoder
from pyasn1.type.univ import Any, ObjectIdentifier, OctetString

3
setup.py

@ -56,8 +56,6 @@ data_files += [
for lang in os.listdir('data/wordlist'):
data_files.append((os.path.join(appdata_dir, 'wordlist'), ['data/wordlist/%s' % lang]))
# replace tlslite because of https://github.com/trevp/tlslite/issues/15
os.system("pip install http://download.electrum.org/tlslite-0.4.5.tar.gz")
setup(
name="Electrum",
@ -71,6 +69,7 @@ setup(
'pyasn1-modules',
'qrcode',
'SocksiPy-branch',
'tlslite'
],
package_dir={
'electrum': 'lib',

Loading…
Cancel
Save