summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-04-20 17:26:11 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-04-20 17:26:11 +0200
commit4c6e81175d8c9172fe989f207656813da1634452 (patch)
treeee3301eae6e8c8a16d08878a6ddb8d57e85141eb
parent872cf1befb46e687d2a7f78a4d8bcb5ae59acc64 (diff)
downloadlogilab-common-4c6e81175d8c9172fe989f207656813da1634452.tar.gz
propify and fix setup.py
-rw-r--r--setup.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 626feb8..184a1b7 100644
--- a/setup.py
+++ b/setup.py
@@ -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 : '.'}