Compiling plastid
requires a standard C build system (e.g. GCC or clang,
plus the standard C library, and linking tools) as well as zlib
. The good
news is that these are already required by plastid
's dependencies, such as
numpy
and pysam
, so you probably already have them.
Plastid requires Python 2.7 or 3.3 or greater, as well as a number of Python
packages. All but three of these (numpy
, pysam
, and Cython
) --
will be automatically handled by Python's package management systems (pip
or easy_install
if you are using them). numpy
, pysam
and Cython
are required for plastid
's setup script to run.
First, make sure you have GCC or clang, zlib and its headers, and the Python headers. On an Ubuntu system, you could get these by typing:
$ sudo apt-get install build-essential zlib1g zlib1g-dev python-devInstall
numpy
,pysam
, andCython
:$ sudo pip install numpy pysam cythonor, for a single user install:
$ pip install --user numpy pysam cythonCompile & install
plastid
:$ python setup.py build $ sudo python setup.py installor, for a single user install:
$ python setup.py build $ python setup.py install --user
Building the documentation requires plastid to be compiled so that its Cython
extensions are importable. In addition, sphinx
, sphinxcontrib-bibtex
,
sphinxcontrib-argdoc
, and numpydoc
are required. Install these:
$ sudo pip install sphinx sphinxcontrib-bibtex sphinxcontrib-argdoc numpydoc
Then make the documentation:
$ cd docs $ make html