-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
51 lines (45 loc) · 1.68 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
import os, sys, setuptools
from skbuild import setup
from pathlib import Path
# Home directory for RMOL, assumed to be the parent directory
# of this setup.py file
rmol_dir = Path(__file__).resolve().parents[1]
# Installation directories of other Travel Market Simulator compoenents
# are assumed to be ../../install/component, as if installed by
# MetaSim (https://github.com/airsim/metasim).
# If that is not the case, adapt the paths to the components
# in the CMake arguments below
install_dir = rmol_dir.parent / 'install'
#
with open("README.md", "r") as fh:
long_description = fh.read()
setup (
name='rmol',
version='1.0.6-1',
author='Denis Arnaud',
author_email='[email protected]',
description=('''Simple Python wrapper for RMOL'''),
license='MIT',
keywords='api python rmol revenue management package',
url='https://github.com/airsim/rmol',
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",
],
cmake_args = [
'-DINSTALL_DOC:BOOL=OFF',
'-DRUN_GCOV:BOOL=OFF',
'-DLIB_SUFFIX=',
f'-DWITH_STDAIR_PREFIX={install_dir}/stdair',
f'-DWITH_AIRRAC_PREFIX={install_dir}/airrac'
] + (
['-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 []
)
)