-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
26 lines (23 loc) · 867 Bytes
/
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
# Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT). All rights reserved.
# This software may be modified and distributed under the terms of the
# GNU Lesser General Public License v2.1 or any later version.
import sys
import setuptools
from cmake_build_extension import BuildExtension, CMakeExtension
setuptools.setup(
ext_modules=[
CMakeExtension(
name="ScenarioCMakeProject",
install_prefix="scenario",
cmake_build_type="Release",
cmake_configure_options=[
"-DSCENARIO_CALL_FROM_SETUP_PY:BOOL=ON",
"-DSCENARIO_BUILD_SHARED_LIBRARY:BOOL=OFF",
f"-DPython3_EXECUTABLE:PATH={sys.executable}",
],
cmake_depends_on=["idyntree"],
disable_editable=True,
)
],
cmdclass=dict(build_ext=BuildExtension),
)