-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
51 lines (44 loc) · 1.69 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 TraDemGen, assumed to be the parent directory
# of this setup.py file
tdg_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 = tdg_dir.parent / 'install'
with open("README.md", "r") as fh:
long_description = fh.read()
setup (
name='trademgen',
version='1.0.6-1',
author='Denis Arnaud',
author_email='denis.arnaud_pypi@m4x.org',
description=('''Simple Python wrapper for AirInv'''),
license='MIT',
keywords='api python airline inventory package',
url='https://github.com/airsim/airinv',
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_SEVMGR_PREFIX={install_dir}/sevmgr'
] + (
['-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 []
)
)