python-dependency-injector/docs/main/installation.rst

46 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2015-04-02 22:29:49 +03:00
Installation
============
2015-08-31 16:31:38 +03:00
*Dependency Injector* framework is distributed by PyPi_.
2015-07-28 09:46:35 +03:00
2015-08-31 16:31:38 +03:00
Latest stable version (and all previous versions) of *Dependency Injector*
framework can be installed from PyPi_:
2015-05-12 16:41:57 +03:00
.. code-block:: bash
2015-04-02 22:29:49 +03:00
2015-08-03 22:36:08 +03:00
# Installing latest version:
2015-08-31 16:31:38 +03:00
pip install dependency_injector
2015-08-03 22:36:08 +03:00
# Installing particular version:
pip install dependency-injector==3.3.2
2015-07-28 09:46:35 +03:00
2016-11-11 18:05:25 +03:00
.. note::
Some components of *Dependency Injector* are implemented as C extension types.
*Dependency Injector* is distributed as an archive with a source code, so
C compiler and Python header files are required for the installation.
2015-05-12 16:41:57 +03:00
Sources can be cloned from GitHub_:
.. code-block:: bash
2015-04-02 22:29:49 +03:00
git clone https://github.com/ets-labs/python-dependency-injector.git
2015-04-02 22:29:49 +03:00
2015-08-31 16:31:38 +03:00
Also all *Dependency Injector* releases can be downloaded from
`GitHub releases page`_.
2015-04-02 22:29:49 +03:00
Verification of currently installed version could be done using
:py:obj:`dependency_injector.VERSION` constant:
.. code-block:: bash
>>> import dependency_injector
>>> dependency_injector.__version__
'3.3.2'
2015-08-31 16:31:38 +03:00
.. _PyPi: https://pypi.python.org/pypi/dependency_injector
.. _GitHub: https://github.com/ets-labs/python-dependency-injector
.. _GitHub releases page: https://github.com/ets-labs/python-dependency-injector/releases
2017-02-28 23:05:00 +03:00
.. disqus::