electrum

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

commit 70cc6271b930dc8e8a6a25b4fa44f2734117e602
parent 5b8bc5ce587d241dfb2636891828f797e1b00671
Author: ThomasV <thomasv1@gmx.de>
Date:   Thu, 12 Dec 2013 15:19:32 -0800

Merge pull request #497 from pitchforks/pip-install-user

fix setup.py to make `pip install --user` possible in Linux
Diffstat:
Msetup.py | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/setup.py b/setup.py @@ -32,17 +32,21 @@ if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Wi if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo' % lang): data_files.append((os.path.join(usr_share, 'locale/%s/LC_MESSAGES' % lang), ['locale/%s/LC_MESSAGES/electrum.mo' % lang])) +appdata_dir = util.appdata_dir() +if not os.access(appdata_dir, os.W_OK): + appdata_dir = os.path.join(usr_share, "electrum") + data_files += [ - (util.appdata_dir(), ["data/README"]), - (os.path.join(util.appdata_dir(), "cleanlook"), [ + (appdata_dir, ["data/README"]), + (os.path.join(appdata_dir, "cleanlook"), [ "data/cleanlook/name.cfg", "data/cleanlook/style.css" ]), - (os.path.join(util.appdata_dir(), "sahara"), [ + (os.path.join(appdata_dir, "sahara"), [ "data/sahara/name.cfg", "data/sahara/style.css" ]), - (os.path.join(util.appdata_dir(), "dark"), [ + (os.path.join(appdata_dir, "dark"), [ "data/dark/background.png", "data/dark/name.cfg", "data/dark/style.css"