-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
42 lines (34 loc) · 1.12 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
import os
import sys
from distutils.core import setup, Extension
from infotheory.infotools import __version__
package_name = "infotheory"
readme = "README.md"
license = "LICENSE"
long_description = """# Package for Mulativariate Information theoretic analyses
## Website and docs
https://github.com/madvn/infotheory"""
# MacOS
# export CXXFLAGS="-mmacosx-version-min=10.9"
# export LDFLAGS="-mmacosx-version-min=10.9"
extra_compile_args = []
if sys.platform == "darwin":
extra_compile_args = ["-stdlib=libc++", "-mmacosx-version-min=10.9", "-v"]
info_ext_module = Extension(
"infotheoryClass",
sources=[os.path.join("./", package_name, "PyLinker.cpp")],
# language = "c++",
extra_compile_args=extra_compile_args,
)
setup(
name=package_name,
version=__version__,
description="Information theoretic analysis tools",
author="Madhavun Candadai and Eduardo J. Izquierdo",
author_email="madvncv@gmail.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://mcandadai.com/infotheory/",
packages=[package_name],
ext_modules=[info_ext_module],
)