summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-17 14:45:02 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-17 14:45:02 -0400
commit33915f6cca600594899047a9cae0d2756368a0dc (patch)
treed55130fd74eef349de4175d793408b6627d6c030
parent396c40a79e8bbe6120dec9c3052c50f18d9dc6ca (diff)
downloadpython-setuptools-bitbucket-1.0.tar.gz
Removed the --delete-conflicting and --ignore-conflicts-at-my-risk options, which have long been deprecated and indicated that they're not used.1.0
-rw-r--r--CHANGES.txt2
-rw-r--r--docs/easy_install.txt29
-rwxr-xr-xsetuptools/command/easy_install.py44
3 files changed, 9 insertions, 66 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index b2e26770..a075c3c8 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -36,6 +36,8 @@ not all users will find 1.0 a drop-in replacement for 0.9.
be updated to account for this change.
* Issue #50: SyntaxErrors generated by `pkg_resources.invalid_marker` are
normalized for cross-implementation consistency.
+* Removed ``--ignore-conflicts-at-my-risk`` and ``--delete-conflicting``
+ options to easy_install. These options have been deprecated since 0.6a11.
-----
0.9.8
diff --git a/docs/easy_install.txt b/docs/easy_install.txt
index 26001c75..42a5323d 100644
--- a/docs/easy_install.txt
+++ b/docs/easy_install.txt
@@ -572,14 +572,12 @@ install``, becuase the ``distutils`` just install new packages on top of old
ones, possibly combining two unrelated packages or leaving behind modules that
have been deleted in the newer version of the package.)
-By default, EasyInstall will stop the installation if it detects a conflict
+EasyInstall will stop the installation if it detects a conflict
between an existing, "unmanaged" package, and a module or package in any of
the distributions you're installing. It will display a list of all of the
existing files and directories that would need to be deleted for the new
-package to be able to function correctly. You can then either delete these
-conflicting files and directories yourself and re-run EasyInstall, or you can
-just use the ``--delete-conflicting`` or ``--ignore-conflicts-at-my-risk``
-options, as described under `Command-Line Options`_, below.
+package to be able to function correctly. To proceed, you must manually
+delete these conflicting files and directories and re-run EasyInstall.
Of course, once you've replaced all of your existing "unmanaged" packages with
versions managed by EasyInstall, you won't have any more conflicts to worry
@@ -823,27 +821,6 @@ Command-Line Options
Added in Distribute 0.6.11 and Setuptools 0.7.
-``--delete-conflicting, -D`` (Removed in 0.6a11)
- (As of 0.6a11, this option is no longer necessary; please do not use it!)
-
- If you are replacing a package that was previously installed *without*
- using EasyInstall, the old version may end up on ``sys.path`` before the
- version being installed with EasyInstall. EasyInstall will normally abort
- the installation of a package if it detects such a conflict, and ask you to
- manually remove the conflicting files or directories. If you specify this
- option, however, EasyInstall will attempt to delete the files or
- directories itself, and then proceed with the installation.
-
-``--ignore-conflicts-at-my-risk`` (Removed in 0.6a11)
- (As of 0.6a11, this option is no longer necessary; please do not use it!)
-
- Ignore conflicting packages and proceed with installation anyway, even
- though it means the package probably won't work properly. If the
- conflicting package is in a directory you can't write to, this may be your
- only option, but you will need to take more invasive measures to get the
- installed package to work, like manually adding it to ``PYTHONPATH`` or to
- ``sys.path`` at runtime.
-
``--index-url=URL, -i URL`` (New in 0.4a1; default changed in 0.6c7)
Specifies the base URL of the Python Package Index. The default is
https://pypi.python.org/simple if not specified. When a package is requested
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 19d6e494..66dc798b 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -125,9 +125,6 @@ class easy_install(Command):
("always-copy", "a", "Copy all needed packages to install dir"),
("index-url=", "i", "base URL of Python Package Index"),
("find-links=", "f", "additional URL(s) to search for packages"),
- ("delete-conflicting", "D", "no longer needed; don't use this"),
- ("ignore-conflicts-at-my-risk", None,
- "no longer needed; don't use this"),
("build-directory=", "b",
"download/extract/build in DIR; keep the results"),
('optimize=', 'O',
@@ -148,7 +145,7 @@ class easy_install(Command):
]
boolean_options = [
'zip-ok', 'multi-version', 'exclude-scripts', 'upgrade', 'always-copy',
- 'delete-conflicting', 'ignore-conflicts-at-my-risk', 'editable',
+ 'editable',
'no-deps', 'local-snapshots-ok', 'version'
]
@@ -197,8 +194,6 @@ class easy_install(Command):
# Options not specifiable via command line
self.package_index = None
self.pth_file = self.always_copy_from = None
- self.delete_conflicting = None
- self.ignore_conflicts_at_my_risk = None
self.site_dirs = None
self.installed_projects = {}
self.sitepy_installed = False
@@ -342,11 +337,6 @@ class easy_install(Command):
except ValueError:
raise DistutilsOptionError("--optimize must be 0, 1, or 2")
- if self.delete_conflicting and self.ignore_conflicts_at_my_risk:
- raise DistutilsOptionError(
- "Can't use both --delete-conflicting and "
- "--ignore-conflicts-at-my-risk at the same time"
- )
if self.editable and not self.build_directory:
raise DistutilsArgError(
"Must specify a build directory (-b) when using --editable"
@@ -411,12 +401,7 @@ class easy_install(Command):
return os.path.join(self.install_dir, "test-easy-install-%s" % pid)
def warn_deprecated_options(self):
- if self.delete_conflicting or self.ignore_conflicts_at_my_risk:
- log.warn(
- "Note: The -D, --delete-conflicting and"
- " --ignore-conflicts-at-my-risk no longer have any purpose"
- " and should not be used."
- )
+ pass
def check_site_dir(self):
"""Verify that self.install_dir is .pth-capable dir, if needed"""
@@ -1005,10 +990,6 @@ Please make the appropriate changes for your system and try again.
return dist
def found_conflicts(self, dist, blockers):
- if self.delete_conflicting:
- log.warn("Attempting to delete conflicting packages:")
- return self.delete_blockers(blockers)
-
msg = """\
-------------------------------------------------------------------------
CONFLICT WARNING:
@@ -1021,29 +1002,12 @@ installing:
%s
+-------------------------------------------------------------------------
""" % '\n '.join(blockers)
- if self.ignore_conflicts_at_my_risk:
- msg += """\
-(Note: you can run EasyInstall on '%s' with the
---delete-conflicting option to attempt deletion of the above files
-and/or directories.)
-""" % dist.project_name
- else:
- msg += """\
-Note: you can attempt this installation again with EasyInstall, and use
-either the --delete-conflicting (-D) option or the
---ignore-conflicts-at-my-risk option, to either delete the above files
-and directories, or to ignore the conflicts, respectively. Note that if
-you ignore the conflicts, the installed package(s) may not work.
-"""
- msg += """\
--------------------------------------------------------------------------
-"""
sys.stderr.write(msg)
sys.stderr.flush()
- if not self.ignore_conflicts_at_my_risk:
- raise DistutilsError("Installation aborted due to conflicts")
+ raise DistutilsError("Installation aborted due to conflicts")
def installation_report(self, req, dist, what="Installed"):
"""Helpful installation message for display to package users"""