comparison setup.py @ 1464:fecd502743b3

setup: wx is not more a dependency since wix has been deprecated
author souliane <souliane@mailoo.org>
date Thu, 20 Aug 2015 10:22:46 +0200
parents 32d1089df687
children 21e6d11615ea
comparison
equal deleted inserted replaced
1463:364dcdae2bff 1464:fecd502743b3
224 def preinstall_check(install_opt): 224 def preinstall_check(install_opt):
225 """Check presence of problematic dependencies, and try to install them with package manager 225 """Check presence of problematic dependencies, and try to install them with package manager
226 This ugly stuff is necessary as distributions are not installed correctly with setuptools/distribute 226 This ugly stuff is necessary as distributions are not installed correctly with setuptools/distribute
227 Hope to remove this at some point""" 227 Hope to remove this at some point"""
228 228
229 #modules_tocheck = ['twisted', 'twisted.words', 'twisted.web', 'wx', 'urwid'] 229 #modules_tocheck = ['twisted', 'twisted.words', 'twisted.web', 'urwid']
230 modules_tocheck = ['gobject'] # XXX: python-gobject is not up-to-date in PyPi 230 modules_tocheck = ['gobject'] # XXX: python-gobject is not up-to-date in PyPi
231 if NO_X_OPT not in install_opt: 231 if NO_X_OPT not in install_opt:
232 modules_tocheck.append('wx') # wx is the only one to be really difficult to install 232 # append to modules_tocheck the packages needed by graphical frontends
233 pass
233 234
234 package = {'twisted': 'python-twisted-core', 235 package = {'twisted': 'python-twisted-core',
235 'twisted.words': 'python-twisted-words', 236 'twisted.words': 'python-twisted-words',
236 'twisted.web': 'python-twisted-web', 237 'twisted.web': 'python-twisted-web',
237 'wx': 'python-wxgtk2.8',
238 'urwid': 'python-urwid', 238 'urwid': 'python-urwid',
239 'gobject': 'python-gobject', 239 'gobject': 'python-gobject',
240 'mercurial': 'mercurial'} # this dict map dependencies to packages names for debian distributions 240 'mercurial': 'mercurial'} # this dict map dependencies to packages names for debian distributions
241 241
242 sys.stdout.write("Running pre-installation dependencies check\n") 242 sys.stdout.write("Running pre-installation dependencies check\n")