File: installing.rst

package info (click to toggle)
cftime 1.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: python: 1,922; sh: 23; makefile: 17
file content (42 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download | duplicates (3)
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
Installation
============

Required dependencies
---------------------

- Python: >=3.7
- `numpy <https://numpy.org/>`__ (1.13.3 or later)


Instructions
------------

The easiest way to get everything installed is to use conda_ command line tool::

    $ conda install cftime

.. _conda: https://docs.conda.io/en/latest/

We recommend using the community maintained `conda-forge <https://conda-forge.org/>`__ channel if you need difficult\-to\-build dependencies such as cartopy or pynio::

    $ conda install -c conda-forge cftime

New releases may also appear in conda-forge before being updated in the default
channel.

If you don't use conda, be sure you have the required dependencies (numpy and
cython) installed first. Then, install cftime with pip::

    $ pip install cftime


Developing
----------


When developing we recommend cloning the GitHub repository,
building the extension in-place with `cython <https://cython.org/>`__ 0.19 or later
``python setup.py build_ext --inplace``

and running the test suite to check if the changes are passing the tests
``pytest --pyargs test``