summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-03-24 16:18:27 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-03-24 16:18:27 +0100
commit7586408e02ad50efdfc84d02f37d04b962022f70 (patch)
tree864f748e398138a73dc6563d6b8f357cb525499c /setup.py
parent2f9539af8c85fce925842b6932c3a5ebc69c5362 (diff)
downloadlogilab-common-7586408e02ad50efdfc84d02f37d04b962022f70.tar.gz
setuptools control
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 7d59f46..5c62f47 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,8 @@ import shutil
from os.path import isdir, exists, join, walk
try:
+ if os.environ.get('NO_SETUPTOOLS'):
+ raise ImportError()
from setuptools import setup
from setuptools.command import install_lib
USE_SETUPTOOLS = 1
@@ -23,6 +25,7 @@ except ImportError:
USE_SETUPTOOLS = 0
+sys.modules.pop('__pkginfo__', None)
# import required features
from __pkginfo__ import modname, version, license, short_desc, long_desc, \
web, author, author_email