-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
executable file
·36 lines (31 loc) · 1.06 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
#!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
version = '0.1dev'
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, 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_subpackage('nireg')
return config
def setup_package(**extra_args):
from numpy.distutils.core import setup
setup(
configuration=configuration,
name='nireg',
version=version,
maintainer='nipy developers',
maintainer_email='[email protected]',
description='Image registration package',
url='https://github.com/nipy/nireg',
license='BSD license',
requires = ('numpy', 'scipy', 'nibabel'),
**extra_args)
return
if __name__ == '__main__':
setup_package()