File: install.rst

package info (click to toggle)
python-ruyaml 0.92.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,732 kB
  • sloc: python: 19,399; makefile: 200; sh: 13
file content (47 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download
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
version: 0.2
text: smd
pdf: false
--- |
# Installing

Make sure you have a recent version of `pip` and `setuptools` installed.
The later needs environment marker support (`setuptools>=20.6.8`) and
that is e.g. bundled with Python 3.4.6 but not with 3.4.4. It is
probably best to do:

    pip install -U pip setuptools wheel

in your environment (`virtualenv`, (Docker) container, etc) before
installing `ruyaml`.

`ruyaml` itself should be installed from [PyPI] using:

    pip install ruyaml

If you want to process jinja2/YAML templates (which are not valid YAML
with the default jinja2 markers), do `pip install ruyaml[jinja2]`
(you might need to quote the last argument because of the `[]`)

There also is a commandline utility `yaml` available after installing:

    pip install ruyaml.cmd

that allows for round-trip testing/re-indenting and conversion of YAML
files (JSON,INI,HTML tables)

## Optional requirements

If you have the the header files for your Python executables installed
then you can use the (non-roundtrip), but faster, C loader and emitter.

On Debian systems you should use:

    sudo apt-get install python3-dev

you can leave out `python3-dev` if you don\'t use python3

For CentOS (7) based systems you should do:

    sudo yum install python-devel
--- !inc-raw |
links.rydinc