From 7433d82a66de2ae537061c7393fbf15cf5171e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Th=C3=A9nault?= Date: Tue, 24 Mar 2009 15:14:25 +0100 Subject: setuptools fix --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 7d59f46b..bcf86bdd 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 @@ -22,7 +24,7 @@ except ImportError: from distutils.command import install_lib 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 -- cgit v1.2.1