diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-01 18:21:10 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-02 06:52:07 -0700 |
commit | d2ab8ac4599e121e9bde2a3c389d108ce3850c87 (patch) | |
tree | b3ae808aae61419b342130890d66b45a9426fe98 /docs/intro.rst | |
parent | c89351fd451f45874df4c5643823a1bbbe4364d1 (diff) | |
download | jinja2-d2ab8ac4599e121e9bde2a3c389d108ce3850c87.tar.gz |
Remove reference to deprecated easy_install; use pip instead
easy_install is deprecated and its use is discouraged by PyPA:
https://setuptools.readthedocs.io/en/latest/easy_install.html
> Warning: Easy Install is deprecated. Do not use it. Instead use pip.
Follow upstream advice and only recommended supported tools. Replace
with pip.
Diffstat (limited to 'docs/intro.rst')
-rw-r--r-- | docs/intro.rst | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/docs/intro.rst b/docs/intro.rst index 03b3db8..1059765 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -23,31 +23,11 @@ need `setuptools`_ or `distribute`_ installed at runtime. Installation ------------ -You have multiple ways to install Jinja2. If you are unsure what to do, go -with the Python egg or tarball. +You can install the most recent Jinja2 version using `pip`_:: -As a Python egg (via `easy_install`) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can install the most recent Jinja2 version using `easy_install`_ or `pip`_:: - - easy_install Jinja2 pip install Jinja2 -This will install a Jinja2 egg in your Python installation's site-packages -directory. - -From the tarball release -~~~~~~~~~~~~~~~~~~~~~~~~~ - -1. Download the most recent tarball from the `download page`_ -2. Unpack the tarball -3. ``python setup.py install`` - -Note that you either have to have `setuptools` or `distribute` installed; -the latter is preferred. - -This will install Jinja2 into your Python installation's site-packages directory. +This will install Jinja2 in your Python installation's site-packages directory. Installing the development version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -61,10 +41,8 @@ As an alternative to steps 4 you can also do ``python setup.py develop`` which will install the package via `distribute` in development mode. This also has the advantage that the C extensions are compiled. -.. _download page: https://pypi.org/project/Jinja2/ .. _distribute: https://pypi.org/project/distribute/ .. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools -.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall .. _pip: https://pypi.org/project/pip/ .. _git: https://git-scm.org/ @@ -72,9 +50,8 @@ has the advantage that the C extensions are compiled. MarkupSafe Dependency ~~~~~~~~~~~~~~~~~~~~~ -As of version 2.7 Jinja2 depends on the `MarkupSafe`_ module. If you -install Jinja2 via `pip` or `easy_install` it will be installed -automatically for you. +As of version 2.7 Jinja2 depends on the `MarkupSafe`_ module. If you install +Jinja2 via ``pip`` it will be installed automatically for you. .. _MarkupSafe: https://pypi.org/project/MarkupSafe/ |