-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
32 lines (25 loc) · 854 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
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info
import os, sys
import sys
fflags= '-fdefault-real-8 -ffixed-form'
# TODO: Fix it so that these flags are default.
config = Configuration(
'glmnet',
parent_package=None,
top_path=None
)
f_sources = ['glmnet/glmnet.pyf','glmnet/glmnet.f']
config.add_extension(name='_glmnet',sources=f_sources)
config_dict = config.todict()
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(version='1.1-5',
description='Python wrappers for the GLMNET package',
author='David Warde-Farley',
author_email='[email protected]',
url='github.com/dwf/glmnet-python',
license='GPL2',
requires=['NumPy (>= 1.3)'],
packages=['glmnet'],
**config_dict)