forked from ingo-m/pyprf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (61 loc) · 2.68 KB
/
setup.py
File metadata and controls
68 lines (61 loc) · 2.68 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""
pyprf setup.
For development installation:
pip install -e /path/to/pRF_mapping
"""
import numpy as np
from setuptools import setup, Extension
# from Cython.Build import cythonize
with open('README.rst') as f:
long_description = f.read()
# Whereas install_requires metadata is automatically analyzed by pip during an
# install (i.e. also when installing from pypi), requirements files are not,
# and only are used when a user specifically installs them using pip install
# -r. Therefore, we pin versions here.
# From the cython documentation:
# "Note also that if you use setuptools instead of distutils, the default
# action when running python setup.py install is to create a zipped egg file
# which will not work with cimport for pxd files when you try to use them from
# a dependent package. To prevent this, include zip_safe=False in the arguments
# to setup()."
# Source:
# http://docs.cython.org/en/latest/src/userguide/source_files_and_compilation.html
# List of external modules (cython):
lstExt = [Extension('pyprf.analysis.cython_leastsquares',
sources=['pyprf/analysis/cython_leastsquares.pyx'],
include_dirs=[np.get_include()],
libraries=['m']
),
Extension('pyprf.analysis.cython_leastsquares_two',
sources=['pyprf/analysis/cython_leastsquares_two.pyx'],
include_dirs=[np.get_include()],
libraries=['m']
),
Extension('pyprf.analysis.cython_prf_convolve',
sources=['pyprf/analysis/cython_prf_convolve.pyx'],
include_dirs=[np.get_include()],
libraries=['m']
)]
setup(name='pyprf',
version='2.0.0',
description=('A free & open source python tool for population receptive \
field analysis of fMRI data.'),
url='https://github.com/ingo-m/pyprf',
download_url='https://github.com/ingo-m/pyprf/archive/v2.0.0.tar.gz',
author='Ingo Marquardt',
author_email='[email protected]',
license='GNU General Public License Version 3',
install_requires=['numpy==1.15.1', 'scipy==1.1.0', 'nibabel==2.2.1',
'pillow==8.1.1', 'cython==0.27.1',
'tensorflow==1.4.0', 'h5py==2.8.0'],
# setup_requires=['numpy'],
keywords=['pRF', 'fMRI', 'retinotopy'],
long_description=long_description,
packages=['pyprf.analysis'],
py_modules=['pyprf.analysis'],
entry_points={
'console_scripts': [
'pyprf = pyprf.analysis.__main__:main',
]},
ext_modules=lstExt # cythonize(lstExt)
)