-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.py.new
More file actions
28 lines (22 loc) · 762 Bytes
/
build.py.new
File metadata and controls
28 lines (22 loc) · 762 Bytes
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
import os, sys, setuptools
import skbuild
import skbuild.constants
__all__ = ("build",)
def build(setup_kwargs: dict) -> None:
with open("README.md", "r") as fh:
long_description = fh.read()
skbuild.setup (
**setup_kwargs,
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 []
)
)
if __name__ == "__main__":
build({})