File: setup.py

package info (click to toggle)
pygccjit 0.4-13
  • links: PTS
  • area: main
  • in suites: sid
  • size: 396 kB
  • sloc: python: 551; makefile: 140
file content (45 lines) | stat: -rw-r--r-- 1,548 bytes parent folder | download | duplicates (5)
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
"""Python bindings for libgccjit"""

# Attempt using setuptools which supports the "tests" target.
try:
    from setuptools import setup
    from distutils.extension import Extension
except ImportError:
    from distutils.core import setup
    from distutils.extension import Extension

from Cython.Distutils import build_ext

doclines = __doc__.split("\n")

classifiers = """\
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: Unix
Programming Language :: Python :: 2
Programming Language :: Python :: 3
"""

setup(
    name='gccjit',
    version='0.4',
    author="David Malcolm",
    author_email="jit@gcc.gnu.org",
    url="https://github.com/davidmalcolm/pygccjit",
    packages=['gccjit',],
    license='GPL v3',
    description = doclines[0],
    classifiers = filter(None, classifiers.split("\n")),
    cmdclass = {'build_ext': build_ext},
    ext_modules = [Extension("gccjit._gccjit", ["gccjit/gccjit.pyx"],
                             libraries=["gccjit"],
                             # Hacks for ease of hacking on this:
                             #include_dirs = ['/home/david/coding/gcc-python/gcc-git-jit-clean/src/gcc/jit'],
                             #library_dirs=["/home/david/coding/gcc-python/gcc-git-jit-clean/build/gcc/"],
                             )],
    test_suite='tests',
    test_loader='tests:TestLoader',
)