forked from madrury/glmnet-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (27 loc) · 901 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
28
29
30
31
32
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info
import os, sys
config = Configuration(
'glmnet',
parent_package=None,
top_path=None
)
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(version='0.9',
description='Python wrappers for the GLMNET package',
author='Matthew Drury',
author_email='[email protected]',
url='github.com/madrury/glmnet-python',
license='GPL2',
requires=['NumPy (>= 1.3)'],
**config_dict
)