angle -> relange in arc
[PyX/mjg.git] / setup.py
blobfdfa6983d8f41a92ff04e117392087c7e5b0c729
1 #!/usr/bin/env python
2 # -*- coding: ISO-8859-1 -*-
4 """Python package for the generation of encapsulated PostScript figures
6 PyX is a Python package for the creation of encapsulated PostScript figures.
7 It provides both an abstraction of PostScript and a TeX/LaTeX interface.
8 Complex tasks like 2d and 3d plots in publication-ready quality are built out
9 of these primitives.
10 """
12 from distutils.core import setup, Extension
13 import sys
14 import pyx
16 ext_modules = [Extension("pyx.t1strip._t1strip",
17 sources=["pyx/t1strip/t1strip.c", "pyx/t1strip/writet1.c"]),
18 Extension("pyx.pykpathsea._pykpathsea",
19 sources=["pyx/pykpathsea/pykpathsea.c"],
20 libraries=["kpathsea"])]
22 data_files = [('share/pyx', ['pyx/lfs/10pt.lfs',
23 'pyx/lfs/11pt.lfs',
24 'pyx/lfs/12pt.lfs',
25 'pyx/lfs/10ptex.lfs',
26 'pyx/lfs/11ptex.lfs',
27 'pyx/lfs/12ptex.lfs',
28 'pyx/lfs/foils17pt.lfs',
29 'pyx/lfs/foils20pt.lfs',
30 'pyx/lfs/foils25pt.lfs',
31 'pyx/lfs/foils30pt.lfs'])]
33 if sys.version_info >= (2, 3):
34 addargs = { "classifiers":
35 [ "Development Status :: 3 - Alpha",
36 "Intended Audience :: Developers",
37 "Intended Audience :: End Users/Desktop",
38 "License :: OSI Approved :: GNU General Public License (GPL)",
39 "Operating System :: OS Independent",
40 "Programming Language :: Python",
41 "Topic :: Multimedia :: Graphics",
42 "Topic :: Scientific/Engineering :: Visualization",
43 "Topic :: Software Development :: Libraries :: Python Modules" ],
44 "download_url":
45 "http://sourceforge.net/project/showfiles.php?group_id=45430",
46 "platform":
47 "OS independent",
49 else:
50 addargs = {}
52 # We're using the module docstring as the distutils descriptions. (seen in Zope3 setup.py)
53 doclines = __doc__.split("\n")
55 setup(name="PyX",
56 version=pyx.__version__,
57 author="Jörg Lehmann, André Wobst",
58 author_email="pyx-devel@lists.sourceforge.net",
59 url="http://pyx.sourceforge.net/",
60 description=doclines[0],
61 long_description="\n".join(doclines[2:]),
62 license="GPL",
63 packages=['pyx', 'pyx/t1strip', 'pyx/pykpathsea'],
64 ext_modules=ext_modules,
65 data_files=data_files,
66 **addargs)