|
| 1 | +[project] |
| 2 | +name = "simple-mpc" |
| 3 | +version = "0.1" |
| 4 | +channels = ["conda-forge"] |
| 5 | +description = "MPC schemes for locomotion" |
| 6 | +platforms = ["linux-64", "osx-arm64"] |
| 7 | +license = "BSD-2-Clause" |
| 8 | +license-file = "LICENSE" |
| 9 | +readme = "README.md" |
| 10 | + |
| 11 | +[build-dependencies] |
| 12 | +ccache = ">=4.9.1" |
| 13 | +cmake = ">=3.10" |
| 14 | +cxx-compiler = ">=1.7.0" |
| 15 | +ninja = ">=1.11" |
| 16 | +pkg-config = ">=0.29.2" |
| 17 | + |
| 18 | +[dependencies] |
| 19 | +libboost-python-devel = ">=1.80.0" |
| 20 | +python = "3.11" |
| 21 | +eigenpy = ">=3.10.1" |
| 22 | +aligator = ">=0.10" |
| 23 | +benchmark = ">=1.8.0" |
| 24 | +pytest = ">=8.3.0" |
| 25 | +matplotlib = ">=3.9" |
| 26 | + |
| 27 | +[activation] |
| 28 | +scripts = ["build_scripts/pixi/activation.sh"] |
| 29 | + |
| 30 | +[tasks] |
| 31 | +# We must avoid to set CMAKE_CXX_FLAGS because of WIN32 |
| 32 | +# https://discourse.cmake.org/t/strictly-appending-to-cmake-lang-flags/6478 |
| 33 | +configure = { cmd = [ |
| 34 | + "CXXFLAGS=$ALIGATOR_CXX_FLAGS", |
| 35 | + "cmake", |
| 36 | + "-G", |
| 37 | + "Ninja", |
| 38 | + "-B", |
| 39 | + "build", |
| 40 | + "-S", |
| 41 | + ".", |
| 42 | + "-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX", |
| 43 | + "-DCMAKE_BUILD_TYPE=$SIMPLE_MPC_BUILD_TYPE", |
| 44 | + "-DBUILD_TESTING=ON", |
| 45 | + "-DGENERATE_PYTHON_STUBS=ON", |
| 46 | +] } |
| 47 | +build = { cmd = "cmake --build build --target all", depends_on = ["configure"] } |
| 48 | +clean = { cmd = "rm -rf build" } |
| 49 | +test = { cmd = "ctest --test-dir build --output-on-failure", depends_on = [ |
| 50 | + "build", |
| 51 | +] } |
| 52 | + |
| 53 | +[feature.lint] |
| 54 | +dependencies = { pre-commit = ">=3.6.2" } |
| 55 | +tasks = { lint = { cmd = "pre-commit run --all" } } |
| 56 | + |
| 57 | +[feature.py311.dependencies] |
| 58 | +python = "3.11.*" |
| 59 | + |
| 60 | +# Use clang on GNU/Linux. |
| 61 | +# We must use scripts instead of env to setup CC and CXX |
| 62 | +# to avoid cxx-compiler to overwrite them. |
| 63 | +[feature.clang] |
| 64 | +platforms = ["linux-64"] |
| 65 | +activation = { scripts = ["build_scripts/pixi/activation_clang.sh"] } |
| 66 | +dependencies = { clangxx = "*" } |
| 67 | + |
| 68 | +[environments] |
| 69 | +default = { features = ["py311"], solve-group = "py311" } |
| 70 | +clang = { features = ["clang", "py311"] } |
| 71 | +lint = { features = ["lint"], solve-group = "py311" } |
| 72 | +all = { features = [], solve-group = "py311" } |
0 commit comments