fix build

This commit is contained in:
Xuwznln
2025-08-01 01:30:29 +08:00
parent 280d83db57
commit cbe7963ad0
2 changed files with 49 additions and 40 deletions

23
.conda/recipe_new.yaml Normal file
View File

@@ -0,0 +1,23 @@
package:
name: unilabos
version: "0.10.1"
source:
path: ../..
build:
noarch: python
script: |
{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
# {{ PYTHON }} clean_build_dir.py
requirements:
host:
- python
- pip
run:
- python
test:
imports:
- unilabos

View File

@@ -1,58 +1,46 @@
package:
name: ros-humble-unilabos-msgs
version: 0.10.1
source:
path: ../../unilabos_msgs
target_directory: ros-humble-unilabos-msgs/src/work
folder: ros-humble-unilabos-msgs/src/work
build:
script:
- if: win
then:
- call %RECIPE_DIR%/bld_ament_cmake.bat
- if: unix
then:
- bash $RECIPE_DIR/build_ament_cmake.sh
sel(win): bld_ament_cmake.bat
sel(unix): build_ament_cmake.sh
number: 5
about:
repository: https://github.com/dptech-corp/Uni-Lab-OS
home: https://www.ros.org/
license: BSD-3-Clause
description: "ros-humble-unilabos-msgs is a package that provides message definitions for Uni-Lab-OS."
summary: |
Robot Operating System
extra:
recipe-maintainers:
- ros-forge
requirements:
build:
- ${{ compiler('cxx') }}
- ${{ compiler('c') }}
- if: linux and x86_64
then:
- sysroot_linux-64 2.17
- "{{ compiler('cxx') }}"
- "{{ compiler('c') }}"
- sel(linux64): sysroot_linux-64 2.17
- ninja
- setuptools
- cython
- sel(unix): make
- sel(unix): coreutils
- sel(osx): tapi
- sel(build_platform != target_platform): pkg-config
- cmake
- if: unix
then:
- make
- coreutils
- if: osx
then:
- tapi
- if: win
then:
- vs2022_win-64
- if: build_platform != target_platform
then:
- pkg-config
- python
- cross-python_${{ target_platform }}
- numpy
- cython
- sel(win): vs2022_win-64
- sel(build_platform != target_platform): python
- sel(build_platform != target_platform): cross-python_{{ target_platform }}
- sel(build_platform != target_platform): numpy
host:
- numpy
- pip
- if: build_platform == target_platform
then:
- pkg-config
- sel(build_platform == target_platform): pkg-config
- robostack-staging::ros-humble-action-msgs
- robostack-staging::ros-humble-ament-cmake
- robostack-staging::ros-humble-ament-lint-auto
@@ -62,14 +50,12 @@ requirements:
- robostack-staging::ros-humble-rosidl-default-generators
- robostack-staging::ros-humble-std-msgs
- robostack-staging::ros-humble-geometry-msgs
- robostack-staging::ros2-distro-mutex=0.6
- robostack-staging::ros2-distro-mutex=0.6.*
run:
- robostack-staging::ros-humble-action-msgs
- robostack-staging::ros-humble-ros-workspace
- robostack-staging::ros-humble-rosidl-default-runtime
- robostack-staging::ros-humble-std-msgs
- robostack-staging::ros-humble-geometry-msgs
- robostack-staging::ros2-distro-mutex=0.6
- if: osx and x86_64
then:
- __osx >= {{ MACOSX_DEPLOYMENT_TARGET|default('10.14') }}
- robostack-staging::ros2-distro-mutex=0.6.*
- sel(osx and x86_64): __osx >={{ MACOSX_DEPLOYMENT_TARGET|default('10.14') }}