summaryrefslogtreecommitdiff
path: root/setup.py
blob: 093f217bd596364642c9b0192a2f4d98c0d26a9f (plain)
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
import sys
from setuptools import setup, Feature, Extension


setup(
    name='ffi',
    descripton='experimental ffi after the example of lua ffi',
    get_version_from_scm=True,

    features={
        'cextension': Feature(
            "fast c backend for cpython",
            standard='__pypy__' not in sys.modules,
            ext_modules=[
                Extension(name='_ffi_backend',
                          sources=['c/_ffi_backend.c'],
                          libraries=['ffi']),
            ],
        ),
    },

    setup_requires=[
        'hgdistver',
    ],
    install_requires=[
        'platformer',
        'pycparser',
    ]
)