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