[Python-checkins] distutils2: replaced a few 'distutils' instances with 'distutils2'
tarek.ziade
python-checkins at python.org
Wed Mar 17 02:58:36 CET 2010
tarek.ziade pushed 62471a39e9ee to distutils2:
http://hg.python.org/distutils2/rev/62471a39e9ee
changeset: 76:62471a39e9ee
parent: 73:29e64afc676d
user: Nicolas Cadou <ncadou at cadou.ca>
date: Mon Mar 15 20:53:10 2010 -0400
summary: replaced a few 'distutils' instances with 'distutils2'
files: src/distutils2/core.py, src/distutils2/mkpkg.py
diff --git a/src/distutils2/core.py b/src/distutils2/core.py
--- a/src/distutils2/core.py
+++ b/src/distutils2/core.py
@@ -1,9 +1,9 @@
-"""distutils.core
+"""distutils2.core
The only module that needs to be imported to use the Distutils; provides
the 'setup' function (which is to be called from the setup script). Also
indirectly provides the Distribution and Command classes, although they are
-really defined in distutils.dist and distutils.cmd.
+really defined in distutils2.dist and distutils2.cmd.
"""
__revision__ = "$Id: core.py 77704 2010年01月23日 09:23:15Z tarek.ziade $"
@@ -15,7 +15,7 @@
DistutilsError, CCompilerError)
from distutils2.util import grok_environment_error
-# Mainly import these so setup scripts can "from distutils.core import" them.
+# Mainly import these so setup scripts can "from distutils2.core import" them.
from distutils2.dist import Distribution
from distutils2.cmd import Command
from distutils2.config import PyPIRCCommand
@@ -76,9 +76,9 @@
will be turned into a command class, which is in turn instantiated; any
class found in 'cmdclass' is used in place of the default, which is
(for command 'foo_bar') class 'foo_bar' in module
- 'distutils.command.foo_bar'. The command class must provide a
+ 'distutils2.command.foo_bar'. The command class must provide a
'user_options' attribute which is a list of option specifiers for
- 'distutils.fancy_getopt'. Any command-line options between the current
+ 'distutils2.fancy_getopt'. Any command-line options between the current
and the next command are used to set attributes of the current command
object.
@@ -212,7 +212,7 @@
if _setup_distribution is None:
raise RuntimeError, \
- ("'distutils.core.setup()' was never called -- "
+ ("'distutils2.core.setup()' was never called -- "
"perhaps '%s' is not a Distutils setup script?") % \
script_name
diff --git a/src/distutils2/mkpkg.py b/src/distutils2/mkpkg.py
--- a/src/distutils2/mkpkg.py
+++ b/src/distutils2/mkpkg.py
@@ -873,11 +873,11 @@
fp = open('setup.py', 'w')
fp.write('#!/usr/bin/env python\n\n')
- fp.write('from distutils.core import setup\n\n')
+ fp.write('from distutils2.core import setup\n\n')
fp.write('from sys import version\n')
fp.write('if version < \'2.2.3\':\n')
- fp.write(' from distutils.dist import DistributionMetadata\n')
+ fp.write(' from distutils2.dist import DistributionMetadata\n')
fp.write(' DistributionMetadata.classifiers = None\n')
fp.write(' DistributionMetadata.download_url = None\n')
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list