summaryrefslogtreecommitdiff
path: root/setuptools/dist.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index a39b4a13..f46a02f8 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -8,6 +8,7 @@ from setuptools.command.install import install
from setuptools.command.install_lib import install_lib
from distutils.errors import DistutilsOptionError, DistutilsPlatformError
from distutils.errors import DistutilsSetupError
+import setuptools
sequence = tuple, list
@@ -38,7 +39,6 @@ sequence = tuple, list
-
class Distribution(_Distribution):
"""Distribution with support for features, tests, and package data
@@ -348,18 +348,18 @@ class Distribution(_Distribution):
return not not self.requires
+ def run_commands(self):
+ if setuptools.bootstrap_install_from and 'install' in self.commands:
+ # Bootstrap self-installation of setuptools
+ from easy_install import easy_install
+ cmd = easy_install(
+ self, args=[setuptools.bootstrap_install_from], zip_ok=1
+ )
+ cmd.ensure_finalized()
+ cmd.run()
+ setuptools.bootstrap_install_from = None
-
-
-
-
-
-
-
-
-
-
-
+ _Distribution.run_commands(self)