Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/pypa/pip into test-wheel…
Browse files Browse the repository at this point in the history
…-version
  • Loading branch information
Ivoz committed Feb 18, 2014
2 parents 5f40562 + 3327753 commit c55544d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
24 changes: 24 additions & 0 deletions docs/reference/pip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,30 @@ Like all pip options, ``--log`` and ``log-file``, can also be set as an environm
variable, or placed into the pip config file. See the :ref:`Configuration`
section.

.. _`exists-action`:

--exists-action option
======================

This option specifies default behavior when path already exists.
Possible cases: downloading files or checking out repositories for installation,
creating archives. If ``--exists-action`` is not defined, pip will prompt
when decision is needed.

*(s)witch*
Only relevant to VCS checkout. Attempt to switch the checkout
to the appropriate url and/or revision.
*(i)gnore*
Abort current operation (e.g. don't copy file, don't create archive,
don't modify a checkout).
*(w)ipe*
Delete the file or VCS checkout before trying to create, download, or checkout a new one.
*(b)ackup*
Rename the file or checkout to ``{name}{'.bak' * n}``, where n is some number
of ``.bak`` extensions, such that the file didn't exist at some point.
So the most recent backup will be the one with the largest number after ``.bak``.


.. _`General Options`:

General Options
Expand Down
8 changes: 8 additions & 0 deletions pip/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import sys

# If we are running from a wheel, add the wheel to sys.path
# This allows the usage python pip-*.whl/pip install pip-*.whl
if __package__ == '':
import os
path = os.path.dirname(os.path.dirname(__file__))
sys.path.insert(0, path)

import pip

if __name__ == '__main__':
Expand Down
2 changes: 0 additions & 2 deletions pip/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
__all__ = ['PackageFinder']


DEFAULT_MIRROR_HOSTNAME = "last.pypi.python.org"

INSECURE_SCHEMES = {
"http": ["https"],
}
Expand Down

0 comments on commit c55544d

Please sign in to comment.