electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 97b726386e711162b1dd8d88814198cc772dcecc
parent a361a05b08f360101e1550a33d6403d32c08ef7e
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 20 Oct 2012 17:01:11 +0200

import modules with imp

Diffstat:
Msetup.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py @@ -3,10 +3,11 @@ # python setup.py sdist --format=zip,gztar from distutils.core import setup -from lib.version import ELECTRUM_VERSION as version -import lib.util as util -import os, sys, platform -from lib.util import print_error +import os, sys, platform, imp + +version = imp.load_source('version', 'lib/version.py') +util = imp.load_source('version', 'lib/util.py') + if sys.version_info[:3] < (2,6,0): sys.exit("Error: Electrum requires Python version >= 2.6.0...") @@ -37,7 +38,7 @@ data_files += [ ] setup(name = "Electrum", - version = version, + version = version.ELECTRUM_VERSION, install_requires = ['slowaes','ecdsa'], package_dir = {'electrum': 'lib'}, scripts= ['electrum'],