# HG changeset patch # User Sylvain Thénault # Date 1271780756 -7200 # Node ID 96893296772ff989aacc324e32947eef6aca40bd # Parent d83a227df75ca0b2432157ce7e306bf322e40e55 [skel] fix setup.py diff -r d83a227df75c -r 96893296772f skeleton/setup.py --- a/skeleton/setup.py Tue Apr 20 18:10:42 2010 +0200 +++ b/skeleton/setup.py Tue Apr 20 18:25:56 2010 +0200 @@ -139,19 +139,12 @@ def install(**kwargs): """setup entry point""" - try: - if USE_SETUPTOOLS: + if USE_SETUPTOOLS: + if '--force-manifest' in sys.argv: sys.argv.remove('--force-manifest') - except: - pass - try: - if not USE_SETUPTOOLS: - # install-layout option was introduced in 2.5.3-1~exp1 - if sys.versioninfo < (2, 5, 4): - sys.argv.remove('--install-layout=deb') - print "W: remove '--install-layout=deb' option" - except: - pass + # install-layout option was introduced in 2.5.3-1~exp1 + elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv: + sys.argv.remove('--install-layout=deb') kwargs['package_dir'] = {modname : '.'} packages = [modname] + get_packages(os.getcwd(), modname) if USE_SETUPTOOLS and install_requires: