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
|
Overview
========
**djvulibre-python** is a set of Python bindings for
the DjVuLibre_ library, an open source implementation of DjVu_.
.. _DjVuLibre:
http://djvu.sourceforge.net/
.. _DjVu:
http://djvu.org/
Prerequisites
=============
The following software is required to build djvulibre-python:
* DjVuLibre (≥ 3.5.26)
* Python_ (≥ 3.6)
* Cython_ (≥ 0.28)
* pkg-config_ (required on POSIX systems)
Additionally, the following software is needed to run the tests:
* DjVuLibre_ command-line tools
* Ghostscript_
.. _Python:
https://www.python.org/
.. _Cython:
https://cython.org/
.. _pkg-config:
https://wiki.freedesktop.org/www/Software/pkg-config/
.. _Ghostscript:
https://www.ghostscript.com/
Installation
============
The easiest way to install djvulibre-python is from PyPI::
pip install djvulibre-python
Alternatively, you can use djvulibre-python without installing it, straight out of an unpacked source tarball or a VCS checkout.
It's also possible to install it from source for the current interpreter with::
pip install .
About this fork
===============
This repository is a Python3-only version of the original repository.
Due to the upstream repository having been archived (`Issue #23`_), this fork will now be maintained on its own. Please note that I do not have any plans on implementing completely new features for now. Nevertheless, I am going to try to keep this fork working for at least the parts which I actually use on a regular basis (as part of *ocrodjvu*).
Differences from upstream
-------------------------
* Package requires Python ≥ 3.6.
* Conform to PEP8 coding style.
* Refactor build to not use the deprecated *distutils* module any more.
* Drop support for building the package on Windows. I do not use it there and there have not been automated tests for it. If someone wants to get this back to work and help maintaining it, feel free to open an issue.
* Add support for Cython 3.0, while dropping some old backwards-compatibility code.
.. _Issue #23:
https://github.com/jwilk-archive/python-djvulibre/issues/23
Acknowledgment
==============
Initial python-djvulibre development was supported by the Polish Ministry of Science
and Higher Education's grant no. N N519 384036 (2009–2012,
https://bitbucket.org/jsbien/ndt).
|