fix target directory for Lexicon.pickle
[cython.git] / setup.py
1 from distutils.core import setup
2 from distutils.sysconfig import get_python_lib
3 import os
4 import sys
5 from Cython.Compiler.Version import version
6
7 compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler')
8 if sys.platform == "win32":
9     compiler_dir = compiler_dir[len(sys.prefix)+1:]
10
11 if os.name == "posix":
12     scripts = ["bin/cython"]
13 else:
14     scripts = ["cython.py"]
15
16 setup(
17   name = 'Cython', 
18   version = version,
19   url = 'http://www.cython.org',
20   author = 'Greg Ewing, William Stein, Robert Bradshaw, Stefan Behnel, et al.',
21   author_email = 'wstein@gmail.com',
22   description = "The Cython compiler for writing C extensions for the Python language.",
23   long_description = """\
24   The Cython language makes writing C extensions for the Python language as
25   easy as Python itself.  Cython is a source code translator based on the
26   well-known Pyrex_, but supports more cutting edge functionality and
27   optimizations.
28
29   The Cython language is very close to the Python language (and most Python
30   code is also valid Cython code), but Cython additionally supports calling C
31   functions and declaring C types on variables and class attributes. This
32   allows the compiler to generate very efficient C code from Cython code.
33
34   This makes Cython the ideal language for writing glue code for external C
35   libraries, and for fast C modules that speed up the execution of Python
36   code.
37
38   .. _Pyrex: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
39   """,
40   classifiers = [
41     "Development Status :: 5 - Production/Stable",
42     "Intended Audience :: Developers",
43     "License :: OSI Approved :: Python Software Foundation License",
44     "Operating System :: OS Independent",
45     "Programming Language :: Python",
46     "Topic :: Software Development :: Code Generators",
47     "Topic :: Software Development :: Compilers",
48     "Topic :: Software Development :: Libraries :: Python Modules"
49   ],
50   zip_safe = False,
51
52   scripts = scripts,
53   packages=[
54     'Cython',
55     'Cython.Compiler',
56     'Cython.Distutils',
57     'Cython.Mac',
58     'Cython.Plex'
59     ],
60   package_data = {
61     'Cython.Compiler' : ['Lexicon.pickle']
62     }
63   )
64