-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·43 lines (32 loc) · 1.15 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
43
#!/usr/bin/env python
from distutils.core import setup, Extension
import distutils.sysconfig
import numpy.distutils.misc_util
# Get the arrayobject.h(numpy) and python.h(python) header file paths:
include_dirs = numpy.distutils.misc_util.get_numpy_include_dirs()
include_dirs.insert(0, distutils.sysconfig.get_python_inc())
# Get the text for the readme and license
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(name='pymix',
version="0.8b",
description='PyMix -- Python mixture package',
long_description=readme,
author="Benjamin Georgi",
author_email="georgi@molgen.mpg.de",
url ="http://www.pymix.org",
license=license,
packages = ['pymix', 'pymix.examples', 'pymix.tests'],
ext_modules = [Extension('_C_mixextend',
['pymix/C_mixextend.c'],
include_dirs = include_dirs,
libraries = ['gsl', 'gslcblas' ,'m'],
)
],
requires = [
'numpy',
]
)
# EOF: setup.py