setup.py 1.86 KB
Newer Older
1
2
3
4
5
6
7
#!/usr/bin/env python
#
# setup.py - setuptools configuration for installing the fslpy package.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#

8
9
import os.path as op

10
11
12
13
from setuptools import setup
from setuptools import find_packages


14
15
16
17
18
19
20
21
22
23
24
25
# The directory in whihc this setup.py file is contained.
basedir = op.dirname(__file__)


# Figure out the current fslpy version, as defined in fsl/version.py. We
# don't want to import the fsl package,  as this may cause build problems.
# So we manually parse the contents of fsl/version.py to extract the
# version number.
version = {}
with open(op.join(basedir, "fsl", "version.py")) as f:
    exec(f.read(), version)

26
27
28
29
setup(

    name='fslpy',

30
    version=version['__version__'],
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

    description='Front end to FSL tools',

    url='https://git.fmrib.ox.ac.uk/paulmc/fslpy',

    author='Paul McCarthy',

    author_email='pauldmccarthy@gmail.com',

    license='FMRIB',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: Free for non-commercial use',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Libraries :: Python Modules'],

    packages=find_packages(exclude=('doc')),

    install_requires=[
        'pyopengl>=3.1.0',
53
        'pyparsing>=2.0.3',
54
55
56
57
58
59
        'numpy>=1.8.1',
        'scipy>=0.14.0',
        'matplotlib>=1.3.1',
        'nibabel>=1.3.0',
        'Pillow>=2.5.3'],

60
    package_data={
Paul McCarthy's avatar
Paul McCarthy committed
61
        'fsl' : [
Paul McCarthy's avatar
Paul McCarthy committed
62
            'fsleyes/splash.png',
63
            'fsleyes/icons/*.png',
Paul McCarthy's avatar
Paul McCarthy committed
64
65
66
            'fsleyes/gl/gl14/*prog',
            'fsleyes/gl/gl21/*glsl',
            'fsleyes/colourmaps/*cmap',
67
            'fsleyes/luts/*lut',
Paul McCarthy's avatar
Paul McCarthy committed
68
69
70
            'fsleyes/colourmaps/README',
            'fsleyes/colourmaps/order.txt',
            'fsleyes/luts/order.txt',
71
72
73
        ]
    },

74
    entry_points={'console_scripts' : ['fslpy = fsl:main']}
75
)