-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
58 lines (53 loc) · 1.59 KB
/
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
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
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy as np
import glob as gg
import os
import sys
with open('README.md') as fh:
readme = fh.read()
expt = ["expt.pyx", "Matrix.cpp", "Data.cpp", "MutualInformationMatrix.cpp", "Filter.cpp", "MathExtensions.cpp"]
requirements = [
'numpy',
'pandas',
'scipy'
]
if sys.platform == 'darwin':
extensions = Extension(
"expt",
sources = ["pymrmre/expt/" + str for str in expt],
language = "c++",
include_dirs=[np.get_include()],
extra_compile_args = ["-stdlib=libc++"],
extra_link_args = ["-stdlib=libc++"],
)
else:
extensions = Extension(
"expt",
sources = ["pymrmre/expt/" + str for str in expt],
language = "c++",
#include_dirs=[np.get_include()],
)
setup(
name = "pymrmre",
version="1.0.6",
description="A Python package for Parallelized Minimum Redundancy, Maximum Relevance (mRMR) Ensemble Feature selections.",
long_description=readme,
long_description_content_type='text/markdown',
url="https://github.com/bhklab/PymRMRe",
author="Bo Li, Benjamin Haibe-Kains",
author_email="benjamin.haibe.kains@utoronto.ca",
test_suite = 'tests',
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
setup_requires=[
'cython>=0.25'
],
license='MIT license',
zip_safe=False,
keywords='pymrmre featureselection genomics computationalbiology',
ext_modules=cythonize(extensions),
include_dirs=[np.get_include()]
)