-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (32 loc) · 1.05 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
#!/usr/bin/env python
version = '0.1dev'
from numpy.distutils.misc_util import Configuration
from numpy.distutils.core import setup
from Cython.Build import cythonize
def configuration(parent_package='', top_path=None):
config = Configuration('variana', parent_package, top_path)
#config.set_options(
# ignore_setup_xxx_py=True,
# assume_default_configuration=True,
# delegate_options_to_subpackages=True,
# quiet=True,
#)
config.add_data_dir('tests')
cythonize('_utils.pyx')
config.add_extension('_utils', sources=['_utils.c'])
return config
def setup_package():
setup(
configuration=configuration,
name='variana',
version=version,
maintainer='Alexis Roche',
maintainer_email='[email protected]',
description='Gaussian probability distribution approximation via variational sampling',
url='http://www.scipy.org',
license='BSD',
#install_requires=['numpy >= 1.0.2',],
)
return
if __name__ == '__main__':
setup_package()