summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authortarek <none@none>2009-07-21 13:58:27 +0200
committertarek <none@none>2009-07-21 13:58:27 +0200
commit7e8f32ff20d3c1fe57bdf6908eb21550e1494e18 (patch)
treea6cee95cbba898f818a29689666b20ed13aaafaa /pkg_resources.py
parent1571d34a42b97f382f163901737eff70ba28b89d (diff)
downloadpython-setuptools-git-7e8f32ff20d3c1fe57bdf6908eb21550e1494e18.tar.gz
adding the distribute marker here too
--HG-- branch : distribute extra : rebase_source : 3278ed8e7f622b6ece09190ba704832cb23480e9
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 9ec094a1..0150a0cb 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -25,6 +25,15 @@ from os import utime, rename, unlink, mkdir
from os import open as os_open
from os.path import isdir, split
+# This marker is used to simplify the process that checks is the
+# setuptools package was installed by the Setuptools project
+# or by the Distribute project, in case Setuptools creates
+# a distribution with the same version.
+#
+# The ez_setup script for instance, will check if this
+# attribute is present to decide wether to reinstall the package
+_distribute = True
+
def _bypass_ensure_directory(name, mode=0777):
# Sandbox-bypassing version of ensure_directory()
dirname, filename = split(name)