-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
36 lines (33 loc) · 1.29 KB
/
setup.py
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
import os
import sys
from setuptools import setup
if os.path.exists('README.rst'):
if sys.version_info > (3,):
description_long = open('README.rst', encoding="utf-8").read()
else:
description_long = open('README.rst').read()
else:
description_long = """
A Python package for blazingly fast JPEG transformations. Compared to other,
more general purpose image processing libraries like `wand-py`_ or
`PIL/Pillow`_, the performance gain can, depending on the transformation, be
somewhere in the range of 150% to 500% (see *Benchmarks*). In addition to
that, all operations except for scaling are lossless, since the image is not
being re-compressed in the process. This is due to the fact that all
transformation operations work directly with the JPEG data.
"""
setup(
name='jpegtran-cffi',
version="0.5.3.dev",
description=("Extremly fast, (mostly) lossless JPEG transformations"),
description_long=description_long,
author="Johannes Baiter",
url="http://github.com/jbaiter/jpegtran-cffi.git",
author_email="[email protected]",
license='MIT',
packages=['jpegtran'],
package_data={'jpegtran': ['jpegtran.cdef']},
setup_requires=['cffi >= 1.0'],
install_requires=['cffi >= 1.0'],
cffi_modules=["jpegtran/jpegtran_build.py:ffi"]
)