[Python-checkins] python/nondist/sandbox/setuptools/setuptools dist.py, 1.18, 1.19
pje@users.sourceforge.net
pje at users.sourceforge.net
Sat Aug 6 21:29:51 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15840/setuptools
Modified Files:
dist.py
Log Message:
Got rid of the no-longer meaningful "depends" command. Consolidated the
replacement of the "install" command so that installation is always via
easy_install, but doesn't use the previous kludgy intereception technique.
Allow ``extra_path`` to be set, but ignore it, so that when easy_install
wraps a package that uses it, there won't be any confusion as to the
desired installation location.
Index: dist.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/dist.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dist.py 6 Aug 2005 18:46:27 -0000 1.18
+++ dist.py 6 Aug 2005 19:29:49 -0000 1.19
@@ -207,9 +207,8 @@
have_package_data = hasattr(self, "package_data")
if not have_package_data:
self.package_data = {}
-
+ self.requires = [] # XXX
self.features = {}
- self.requires = []
self.dist_files = []
if attrs and 'setup_requires' in attrs:
@@ -244,18 +243,13 @@
+
def finalize_options(self):
_Distribution.finalize_options(self)
if self.features:
self._set_global_opts_from_features()
- if self.extra_path:
- raise DistutilsSetupError(
- "The 'extra_path' parameter is not needed when using "
- "setuptools. Please remove it from your setup script."
- )
-
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
value = getattr(self,ep.name,None)
if value is not None:
@@ -285,6 +279,12 @@
+
+
+
+
+
+
def _set_global_opts_from_features(self):
"""Add --with-X/--without-X options based on optional features"""
@@ -572,47 +572,6 @@
- def has_dependencies(self):
- return not not self.requires
-
- def run_commands(self):
- for cmd in self.commands:
- if cmd=='install' and not cmd in self.have_run:
- self.install_eggs()
- else:
- self.run_command(cmd)
-
- def install_eggs(self):
- from setuptools.command.easy_install import easy_install
- cmd = easy_install(self, args="x", ignore_conflicts_at_my_risk=1)
- cmd.ensure_finalized() # finalize before bdist_egg munges install cmd
-
- self.run_command('bdist_egg')
- args = [self.get_command_obj('bdist_egg').egg_output]
-
- if setuptools.bootstrap_install_from:
- # Bootstrap self-installation of setuptools
- args.insert(0, setuptools.bootstrap_install_from)
-
- cmd.args = args
- cmd.run()
- self.have_run['install'] = 1
- setuptools.bootstrap_install_from = None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def get_cmdline_options(self):
"""Return a '{cmd: {opt:val}}' map of all command-line options
More information about the Python-checkins
mailing list