forked from recommenders-team/recommenders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.52 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
import sysconfig
from setuptools import setup
from setuptools.extension import Extension
class get_pybind_include(object):
def __init__(self, user=False):
self.user = user
def __str__(self):
import pybind11
return pybind11.get_include(self.user)
setup(
name="pysarplus",
version="0.2.6",
description="SAR prediction for use with PySpark",
url="https://github.com/Microsoft/Recommenders/contrib/sarplus",
author="Markus Cozowicz",
author_email="marcozo@microsoft.com",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
],
setup_requires=["pytest-runner"],
install_requires=["pybind11>=2.2"],
tests_require=["pytest"],
packages=["pysarplus"],
ext_modules=[
Extension(
"pysarplus_cpp",
["src/pysarplus.cpp"],
include_dirs=[get_pybind_include(), get_pybind_include(user=True)],
extra_compile_args=sysconfig.get_config_var("CFLAGS").split()
+ ["-std=c++11", "-Wall", "-Wextra"],
libraries=["stdc++"],
language="c++11",
)
],
zip_safe=False,
)