1# Licensed under a 3-clause BSD style license - see LICENSE.rst
2
3import os
4from setuptools import Extension
5
6import numpy
7
8ROOT = os.path.relpath(os.path.dirname(__file__))
9
10
11def get_extensions():
12    sources = ["_np_utils.pyx", "_column_mixins.pyx"]
13    include_dirs = [numpy.get_include()]
14
15    exts = [
16        Extension(name='astropy.table.' + os.path.splitext(source)[0],
17                  sources=[os.path.join(ROOT, source)],
18                  include_dirs=include_dirs)
19        for source in sources
20    ]
21
22    return exts
23