diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-04-20 17:26:11 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-04-20 17:26:11 +0200 |
commit | 4c6e81175d8c9172fe989f207656813da1634452 (patch) | |
tree | ee3301eae6e8c8a16d08878a6ddb8d57e85141eb | |
parent | 872cf1befb46e687d2a7f78a4d8bcb5ae59acc64 (diff) | |
download | logilab-common-4c6e81175d8c9172fe989f207656813da1634452.tar.gz |
propify and fix setup.py
-rw-r--r-- | setup.py | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -150,19 +150,12 @@ class MyInstallLib(install_lib.install_lib): 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') if subpackage_of: package = subpackage_of + '.' + modname kwargs['package_dir'] = {package : '.'} |