From 6f9e39534c8b0aca810553e5ebc34f789c67ca05 Mon Sep 17 00:00:00 2001 From: tarek Date: Tue, 27 Oct 2009 09:15:46 +0100 Subject: added DONT_PATCH_SETUPTOOLS environment marker --HG-- branch : distribute extra : rebase_source : 4fe53262211c90f2a90027014970f7e666de88f0 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 07cfcd5e..69c23d44 100755 --- a/setup.py +++ b/setup.py @@ -75,6 +75,8 @@ def _buildout_marker(): return 'buildout' in os.path.basename(command) def _being_installed(): + if os.environ.get('DONT_PATCH_SETUPTOOLS') is not None: + return True if _buildout_marker(): # Installed by buildout, don't mess with a global setuptools. return False -- cgit v1.2.1