From 466d1e0f402d9d5580111a0a18608f449567389c Mon Sep 17 00:00:00 2001 From: Maran Date: Sun, 26 Aug 2012 21:30:25 +0200 Subject: [PATCH] If we are doing a sdist just include everything since we don't know the target os --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 5a90bf04e..0e2fcb3b4 100644 --- a/setup.py +++ b/setup.py @@ -7,13 +7,12 @@ from lib.version import ELECTRUM_VERSION as version import lib.util as util import os, sys, platform from lib.util import print_error - if sys.version_info[:3] < (2,6,0): sys.exit("Error: Electrum requires Python version >= 2.6.0...") data_files = [] - -if platform.system() != 'Windows' and platform.system() != 'Darwin': +if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Windows' and platform.system() != 'Darwin'): + print "Including all files" data_files += [ ('/usr/share/applications/',['electrum.desktop']), ('/usr/share/app-install/icons/',['electrum.png'])