-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (35 loc) · 1.08 KB
/
setup.py
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
#!/usr/bin/env python
r"""
Python interface for LSMLIB.
Python interface for LSMLIB using Cython.
"""
DOCLINES = __doc__.split("\n")
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
from setuptools.extension import Extension
import os
import numpy
try:
from Cython.Distutils import build_ext
except ImportError:
sources = [os.path.join('pylsmlib', 'lsmlib.c')]
cmdclass = {}
else:
sources = [os.path.join('pylsmlib', 'lsmlib.pyx')]
cmdclass = { 'build_ext': build_ext }
setup(name="pylsmlib",
version="0.1",
author="Daniel Wheeler",
author_email="[email protected]",
description=DOCLINES[0],
url='https://github.com/ktchu/LSMLIB.git',
long_description = "\n".join(DOCLINES[2:]),
license='BSD-style',
packages=['pylsmlib'],
cmdclass = cmdclass,
ext_modules = [Extension("pylsmlib.lsmlib",
sources=sources,
libraries=['lsm_serial', 'lsm_toolbox'],
include_dirs=[numpy.get_include(), 'pylsmlib'])]
)