Skip to content

Commit

Permalink
Remove dead code, remove manylinux reference, fix docs enumeration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lawson committed Jul 21, 2016
1 parent 17ffa30 commit 5337d01
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 67 deletions.
126 changes: 63 additions & 63 deletions docs/reference/pip_download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,66 +55,66 @@ Options
Examples
********

1. Download a package and all of its dependencies

::

$ pip download SomePackage
$ pip download -d . SomePackage # equivalent to above
$ pip download --no-index --find-links=/tmp/wheelhouse -d /tmp/otherwheelhouse SomePackage

2. Download a package and all of its dependencies with OSX specific interpreter constraints.
This forces OSX 10.10 or lower compatibility. Since OSX deps are forward compatible,
this will also match ``macosx-10_9_x86_64``, ``macosx-10_8_x86_64``, ``macosx-10_8_intel``,
etc.
It will also match deps with platform ``any``. Also force the interpreter version to ``27``
(or more generic, i.e. ``2``) and implementation to ``cp`` (or more generic, i.e. ``py``).

::

$ pip download \
--only-binary=:all: \
--platform macosx-10_10_x86_64 \
--python-version 27 \
--implementation cp \
SomePackage

3. Download a package and its dependencies with linux specific constraints, including
packages that support the ``manylinux1`` platform. Force the interpreter to be any
minor version of py3k, and only accept ``cp34m`` or ``none`` as the abi.

::

$ pip download \
--only-binary=:all: \
--platform linux_x86_64 --manylinux \
--python-version 3 \
--implementation cp \
--abi cp34m \
SomePackage

4. Force platform, implementation, and abi agnostic deps.

::

$ pip download \
--only-binary=:all: \
--platform any \
--python-version 3 \
--implementation py \
--abi none \
SomePackage

5. Even when overconstrained, this will still correctly fetch the pip universal wheel.

::

$ pip download \
--only-binary=:all: \
--platform linux_x86_64 --manylinux \
--python-version 33 \
--implementation cp \
--abi cp34m \
pip>=8
$ ls pip-8.1.1-py2.py3-none-any.whl
pip-8.1.1-py2.py3-none-any.whl
#. Download a package and all of its dependencies

::

$ pip download SomePackage
$ pip download -d . SomePackage # equivalent to above
$ pip download --no-index --find-links=/tmp/wheelhouse -d /tmp/otherwheelhouse SomePackage

#. Download a package and all of its dependencies with OSX specific interpreter constraints.
This forces OSX 10.10 or lower compatibility. Since OSX deps are forward compatible,
this will also match ``macosx-10_9_x86_64``, ``macosx-10_8_x86_64``, ``macosx-10_8_intel``,
etc.
It will also match deps with platform ``any``. Also force the interpreter version to ``27``
(or more generic, i.e. ``2``) and implementation to ``cp`` (or more generic, i.e. ``py``).

::

$ pip download \
--only-binary=:all: \
--platform macosx-10_10_x86_64 \
--python-version 27 \
--implementation cp \
SomePackage

#. Download a package and its dependencies with linux specific constraints.
Force the interpreter to be any minor version of py3k, and only accept
``cp34m`` or ``none`` as the abi.

::

$ pip download \
--only-binary=:all: \
--platform linux_x86_64 \
--python-version 3 \
--implementation cp \
--abi cp34m \
SomePackage

#. Force platform, implementation, and abi agnostic deps.

::

$ pip download \
--only-binary=:all: \
--platform any \
--python-version 3 \
--implementation py \
--abi none \
SomePackage

#. Even when overconstrained, this will still correctly fetch the pip universal wheel.

::

$ pip download \
--only-binary=:all: \
--platform linux_x86_64 \
--python-version 33 \
--implementation cp \
--abi cp34m \
pip>=8
$ ls pip-8.1.1-py2.py3-none-any.whl
pip-8.1.1-py2.py3-none-any.whl
4 changes: 0 additions & 4 deletions pip/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ def __init__(self, find_links, index_urls, allow_all_prereleases=False,
abi=abi,
impl=implementation,
)
self.valid_tags_noarch = get_supported(
versions=versions,
noarch=True
)

# If we don't have TLS enabled, then WARN if anyplace we're looking
# relies on TLS.
Expand Down

0 comments on commit 5337d01

Please sign in to comment.