-
Notifications
You must be signed in to change notification settings - Fork 67
/
setup.py
36 lines (33 loc) · 1.25 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
import os
import cmake_build_extension
import setuptools
if "CIBUILDWHEEL" in os.environ and os.environ["CIBUILDWHEEL"] == "1":
CIBW_CMAKE_OPTIONS = ["-DCMAKE_INSTALL_LIBDIR=lib"]
else:
CIBW_CMAKE_OPTIONS = []
setuptools.setup(
cmdclass=dict(build_ext=cmake_build_extension.BuildExtension),
ext_modules=[
cmake_build_extension.CMakeExtension(
name="BuildAndInstall",
install_prefix="idyntree",
expose_binaries=["bin/idyntree-model-info"],
cmake_configure_options=[
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DIDYNTREE_USES_PYTHON:BOOL=ON",
"-DBUILD_TESTING:BOOL=OFF",
"-DIDYNTREE_PACKAGE_FOR_PYPI:BOOL=ON",
"-DIDYNTREE_USES_IPOPT:BOOL=OFF",
"-DIDYNTREE_USES_ASSIMP:BOOL=OFF",
"-DIDYNTREE_USES_IRRLICHT:BOOL=OFF",
"-DIDYNTREE_USES_OSQPEIGEN:BOOL=OFF",
"-DIDYNTREE_USES_ALGLIB:BOOL=OFF",
"-DIDYNTREE_USES_WORHP:BOOL=OFF",
"-DIDYNTREE_USES_YARP:BOOL=OFF",
"-DIDYNTREE_USES_ICUB_MAIN:BOOL=OFF",
"-DIDYNTREE_PYTHON_PIP_METADATA_INSTALL:BOOL=OFF",
]
+ CIBW_CMAKE_OPTIONS,
),
],
)