-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
73 lines (46 loc) · 1.26 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#######
Install
#######
`piecutter` is open-source software, published under BSD license.
See :doc:`/about/license` for details.
If you want to install a development environment, you should go to
:doc:`/contributing` documentation.
*************
Prerequisites
*************
* `Python`_ ==2.7.
************
As a library
************
In most cases, you will use `piecutter` as a dependency of another project.
In such a case, you should add ``piecutter`` in your main project's
requirements. Typically in :file:`setup.py`:
.. code:: python
from setuptools import setup
setup(
install_requires=[
'piecutter',
#...
]
# ...
)
Then when you install your main project with your favorite package manager
(like `pip`_), `piecutter` will automatically installed.
**********
Standalone
**********
You can install `piecutter` with your favorite Python package manager.
As an example with `pip`_:
.. code:: sh
pip install piecutter
*****
Check
*****
Check `piecutter` has been installed:
.. code:: sh
python -c "import piecutter;print(piecutter.__version__)"
You should get `piecutter`'s version.
.. rubric:: References
.. target-notes::
.. _`Python`: http://python.org
.. _`pip`: https://pypi.python.org/pypi/pip/