-
Notifications
You must be signed in to change notification settings - Fork 23
/
pixi.toml
54 lines (50 loc) · 3.5 KB
/
pixi.toml
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
51
52
53
54
[project]
name = "icub-models-generator"
# pixi forces the use of a version, but then the version is not used anywhere,
# so we actually just set it to 0.0.0 and never update it
version = "0.0.0"
description = "Resources and programs to generate models (URDF, SDF) of the iCub robot."
authors = ["Silvio Traversaro <[email protected]>"]
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "win-64", "osx-arm64", "osx-64"]
[activation]
# Workaround for https://github.com/prefix-dev/pixi/issues/826
scripts = ["clean_env.sh"]
[system-requirements]
# Support macos 12
macos = "12.0"
[tasks]
# pixi does support git pip packages, but the old version of urdf_parser_py we are installing raises a uv error:
# Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
# ModuleNotFoundError: No module named 'catkin_pkg'
# Specific commit of urdfdom_py is a workaround for https://github.com/robotology/simmechanics-to-urdf/issues/36
header_commit = { cmd = "echo Automatic build of models via icub-models-generator. > ./deploy_commit_message" }
header_own_version = {cmd = "echo icub-models-generator commit: robotology/icub-models-generator@$(git rev-parse HEAD) >> ./deploy_commit_message", depends_on = ["header_commit"]}
header_repos = { cmd = "echo ### Dependencies information of dependencies installed manually: >> ./deploy_commit_message", depends_on = ["header_own_version"] }
install_urdfdom_py = { cmd = "export URDF_PARSER_PY_COMMIT=31474b9baaf7c3845b40e5a9aa87d5900a2282c3 && pip install git+https://github.com/ros/urdf_parser_py.git@$URDF_PARSER_PY_COMMIT --no-deps && echo urdf_parser_py commit: ros/urdf_parser_py@$URDF_PARSER_PY_COMMIT >> ./deploy_commit_message", depends_on = ["header_repos"]}
install_simmechanics_to_urdf = { cmd = "export SIMMECHANICS_TO_URDF_COMMIT=143fd8f5450d0f84611d35ea1611869e530b0623 && pip install git+https://github.com/robotology/simmechanics-to-urdf@$SIMMECHANICS_TO_URDF_COMMIT --no-deps && echo simmechanics-to-urdf commit: robotology/simmechanics-to-urdf@$SIMMECHANICS_TO_URDF_COMMIT >> ./deploy_commit_message", depends_on = ["install_urdfdom_py"] }
header_pixi_list = { cmd = "echo ### Dependencies information via pixi list: >> ./deploy_commit_message", depends_on = ["install_simmechanics_to_urdf"]}
pixi_list = { cmd = "pixi list >> ./deploy_commit_message", depends_on = ["header_pixi_list"]}
configure_cmake_project = { cmd = "cmake -GNinja -S. -B.build -DICUB_MODELS_SOURCE_DIR=$ICUB_MODELS_SOURCE_DIR -DBUILD_TESTING:BOOL=ON", depends_on = ["pixi_list"]}
generate_models = { cmd = "cmake --build .build --target generate-models", depends_on = ["configure_cmake_project"]}
copy_models_to_icub_models = { cmd = "cmake --build .build --target copy-models-to-icub-models", depends_on = ["configure_cmake_project"]}
build_tests = { cmd = "cmake --build .build", depends_on = ["configure_cmake_project"] }
test_generated_models = { cmd = "ctest --test-dir .build", depends_on = ["generate_models", "build_tests"]}
[dependencies]
# We need a version where https://github.com/robotology/idyntree/pull/1191
# is fixed
idyntree = ">=12.3.3"
yarp = ">=3.9.0,<3.10"
lxml = "==4.9.4"
# Not using latest pyyaml as workaround for https://github.com/robotology/simmechanics-to-urdf/issues/57
pyyaml = ">=5.0.0,<6.0.0"
numpy = ">=1.26.4,<1.27"
catkin_pkg = ">=1.0.0,<1.1"
pip = ">=24.0,<25"
python = ">=3.11.1,<3.12"
ninja = ">=1.11.1,<1.12"
cxx-compiler = ">=1.7.0,<1.8"
c-compiler = ">=1.7.0,<1.8"
# ruby is used by the convertSTL.rb script
ruby = ">=3.2.2,<3.3"
cmake = "*"