-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
39 lines (35 loc) · 1.16 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
import os, sys, setuptools
from skbuild import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup (
name='opentrep',
version='0.7.12',
author='Denis Arnaud',
author_email='denis.arnaud_pypi@m4x.org',
description=('''Simple Python wrapper for OpenTREP'''),
license='MIT',
keywords='api python trep opentrep package',
url='https://github.com/trep/opentrep',
packages=setuptools.find_packages(),
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
'protobuf'
],
cmake_args = [
'-DINSTALL_DOC:BOOL=OFF',
'-DRUN_GCOV:BOOL=OFF',
'-DLIB_SUFFIX='
] + (
['-DREADLINE_ROOT=/usr/local/opt/portable-readline',
'-DREADLINE_INCLUDE_DIR=/usr/local/opt/portable-readline/include',
'-DREADLINE_LIBRARY=/usr/local/opt/libedit/lib/libedit.dylib',
'-DICU_ROOT=/usr/local/opt/icu4c'] if sys.platform.startswith("darwin") else []
)
)