forked from madrury/glmnet-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
28 lines (22 loc) · 871 Bytes
/
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
import setuptools
from numpy.distutils.misc_util import Configuration
config = Configuration()
f_sources = ['glmnet/glmnet.pyf','glmnet/glmnet.f']
fflags= ['-fdefault-real-8', '-ffixed-form']
config.add_extension(name='_glmnet',
sources=f_sources,
extra_f77_compile_args=fflags,
extra_f90_compile_args=fflags)
config_dict = config.todict()
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(name='glmnet',
version='0.9',
packages=setuptools.find_packages(),
description='Python wrappers for the GLMNET package',
author='Matthew Drury',
author_email='[email protected]',
url='github.com/madrury/glmnet-python',
license='GPL2',
setup_requires=['numpy >= 1.3'],
**config_dict)