From e2c29cb3d771a44f5392c8c6a81682f73ecbf39e Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Thu, 27 Jun 2024 20:29:44 -0700 Subject: [PATCH 1/5] Add dartpy --- README.md | 23 ++-- recipe/{bld.bat => bld_cpp.bat} | 0 recipe/bld_py.bat | 9 ++ recipe/{build.sh => build_cpp.sh} | 6 +- recipe/build_py.sh | 15 +++ recipe/conda_build_config.yaml | 2 + recipe/meta.yaml | 178 ++++++++++++++++++++++-------- recipe/remove-opencl.patch | 27 +++++ 8 files changed, 199 insertions(+), 61 deletions(-) rename recipe/{bld.bat => bld_cpp.bat} (100%) create mode 100644 recipe/bld_py.bat rename recipe/{build.sh => build_cpp.sh} (90%) create mode 100644 recipe/build_py.sh create mode 100644 recipe/conda_build_config.yaml create mode 100644 recipe/remove-opencl.patch diff --git a/README.md b/README.md index 87aa775..586e427 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | +| [![Conda Recipe](https://img.shields.io/badge/recipe-dartpy-green.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | | [![Conda Recipe](https://img.shields.io/badge/recipe-dartsim-green.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | Installing dartsim @@ -97,41 +98,41 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `dartsim` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `dartpy, dartsim` can be installed with `conda`: ``` -conda install dartsim +conda install dartpy dartsim ``` or with `mamba`: ``` -mamba install dartsim +mamba install dartpy dartsim ``` -It is possible to list all of the versions of `dartsim` available on your platform with `conda`: +It is possible to list all of the versions of `dartpy` available on your platform with `conda`: ``` -conda search dartsim --channel conda-forge +conda search dartpy --channel conda-forge ``` or with `mamba`: ``` -mamba search dartsim --channel conda-forge +mamba search dartpy --channel conda-forge ``` Alternatively, `mamba repoquery` may provide more information: ``` # Search all versions available on your platform: -mamba repoquery search dartsim --channel conda-forge +mamba repoquery search dartpy --channel conda-forge -# List packages depending on `dartsim`: -mamba repoquery whoneeds dartsim --channel conda-forge +# List packages depending on `dartpy`: +mamba repoquery whoneeds dartpy --channel conda-forge -# List dependencies of `dartsim`: -mamba repoquery depends dartsim --channel conda-forge +# List dependencies of `dartpy`: +mamba repoquery depends dartpy --channel conda-forge ``` diff --git a/recipe/bld.bat b/recipe/bld_cpp.bat similarity index 100% rename from recipe/bld.bat rename to recipe/bld_cpp.bat diff --git a/recipe/bld_py.bat b/recipe/bld_py.bat new file mode 100644 index 0000000..3f1099b --- /dev/null +++ b/recipe/bld_py.bat @@ -0,0 +1,9 @@ +:: Check the number of cores to use by ninja by default +IF %CPU_COUNT% GTR 8 ( + set CMAKE_BUILD_PARALLEL_LEVEL=8 +) ELSE ( + set CMAKE_BUILD_PARALLEL_LEVEL=%CPU_COUNT% +) + +:: Install the Python package +python -m pip install . diff --git a/recipe/build.sh b/recipe/build_cpp.sh similarity index 90% rename from recipe/build.sh rename to recipe/build_cpp.sh index 6243b83..b4acf81 100644 --- a/recipe/build.sh +++ b/recipe/build_cpp.sh @@ -5,7 +5,11 @@ mkdir build && cd build if [[ ${target_platform} == "linux-ppc64le" ]]; then NUM_PARALLEL=-j1 else - NUM_PARALLEL=-j${CPU_COUNT} + if [[ ${CPU_COUNT} -gt 8 ]]; then + NUM_PARALLEL=-j8 + else + NUM_PARALLEL=-j${CPU_COUNT} + fi fi if [[ "${target_platform}" == osx-* ]]; then diff --git a/recipe/build_py.sh b/recipe/build_py.sh new file mode 100644 index 0000000..5e1bdca --- /dev/null +++ b/recipe/build_py.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level +if [[ ${target_platform} == "linux-ppc64le" ]]; then + export CMAKE_BUILD_PARALLEL_LEVEL=1 +else + if [[ ${CPU_COUNT} -gt 8 ]]; then + export CMAKE_BUILD_PARALLEL_LEVEL=8 + else + export CMAKE_BUILD_PARALLEL_LEVEL=${CPU_COUNT} + fi +fi + +# Install the Python package +python -m pip install . diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml new file mode 100644 index 0000000..8049ad8 --- /dev/null +++ b/recipe/conda_build_config.yaml @@ -0,0 +1,2 @@ +c_stdlib_version: # [osx and x86_64] + - '10.15' # [osx and x86_64] diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 4137511..3fcce5d 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -8,60 +8,140 @@ package: source: - url: https://github.com/dartsim/dart/archive/v{{ version }}.tar.gz sha256: f5fc7f5cb1269cc127a1ff69be26247b9f3617ce04ff1c80c0f3f6abc7d9ab70 + patches: + - remove-opencl.patch build: - number: 4 - run_exports: - - {{ pin_subpackage(name, max_pin='x.x') }} + number: 5 -requirements: - build: - - {{ compiler('c') }} - - {{ compiler('cxx') }} - - {{ cdt('mesa-libgl-devel') }} # [linux64] - - {{ cdt('mesa-libglu-devel') }} # [linux64] - - {{ stdlib("c") }} - - cmake - - doxygen - - make # [not win] - - ninja # [win] - - perl # [win] - - pkg-config +outputs: + - name: dartsim-cpp + script: build_cpp.sh # [unix] + script: bld_cpp.bat # [win] + build: + run_exports: + - {{ pin_subpackage('dartsim-cpp', max_pin='x.x') }} + ignore_run_exports: + - console_bridge + - spdlog + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - {{ cdt('mesa-libgl-devel') }} # [linux64] + - {{ cdt('mesa-libglu-devel') }} # [linux64] + - {{ stdlib('c') }} + - cmake + - doxygen + - make # [not win] + - ninja # [win] + - perl # [win] + - pkg-config + - python # [build_platform != target_platform and backend == "python3"] + - cross-python_{{ target_platform }} # [build_platform != target_platform and backend == "python3"] + - numpy # [build_platform != target_platform and backend == "python3"] + host: + - assimp + - bullet-cpp + - console_bridge + - eigen + - fcl + - fmt + - freeglut # [not osx] + - imgui # [not ppc64le] + - ipopt + - libboost-devel # [not ppc64le] + - libode + - nlopt + - octomap + - openscenegraph # [linux64 or osx or win] + - pagmo # [not ppc64le] + - pagmo-devel # [not ppc64le] + - tinyxml2 + - urdfdom + - spdlog + run: + - eigen + - octomap + test: + commands: + - test -f $PREFIX/lib/libdart.dylib # [osx] + - test -f $PREFIX/lib/libdart.so # [linux] + - test -f $PREFIX/share/dart/cmake/dart_collision-odeTargets.cmake # [not win] + - test -f $PREFIX/share/dart/cmake/dart_collision-bulletTargets.cmake # [not win] + - if not exist %LIBRARY_LIB%\\dart.lib exit 1 # [win] + - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-odeTargets.cmake exit 1 # [win] + - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-bulletTargets.cmake exit 1 # [win] - host: - - assimp - - bullet-cpp - - console_bridge - - eigen - - fcl - - fmt - - freeglut # [not osx] - - imgui # [not ppc64le] - - ipopt - - libboost-devel # [not ppc64le] - - libode - - nlopt - - octomap - - openscenegraph # [linux64 or osx or win] - - pagmo # [not ppc64le] - - pagmo-devel # [not ppc64le] - - tinyxml2 - - urdfdom - - spdlog + - name: dartpy + script: build_py.sh # [unix] + script: bld_py.bat # [win] + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - {{ cdt('mesa-dri-drivers') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux64] + - {{ cdt('mesa-libglu-devel') }} # [linux64] + - {{ cdt('libselinux') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxext') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ stdlib('c') }} + - cmake + - doxygen + - make # [not win] + - ninja # [win] + - perl # [win] + - pkg-config + - python # [build_platform != target_platform and backend == "python3"] + - cross-python_{{ target_platform }} # [build_platform != target_platform and backend == "python3"] + - numpy # [build_platform != target_platform and backend == "python3"] + host: + - {{ pin_subpackage('dartsim-cpp', exact=True) }} + - xorg-libxfixes # [linux] + - numpy + - pip + - python + run: + - {{ cdt('mesa-libgl-devel') }} # [linux64] + - {{ cdt('mesa-libglu-devel') }} # [linux64] + - {{ cdt('mesa-dri-drivers') }} # [linux] + - {{ pin_subpackage('dartsim-cpp', exact=True) }} + - libglu + - numpy + - python + - openscenegraph + - nlopt + - bullet-cpp + - fcl + - assimp + - octomap + - libode + - urdfdom + - tinyxml2 + test: + imports: + - dartpy - run: - - eigen - - octomap - -test: - commands: - - test -f $PREFIX/lib/libdart.dylib # [osx] - - test -f $PREFIX/lib/libdart.so # [linux] - - test -f $PREFIX/share/dart/cmake/dart_collision-odeTargets.cmake # [not win] - - test -f $PREFIX/share/dart/cmake/dart_collision-bulletTargets.cmake # [not win] - - if not exist %LIBRARY_LIB%\\dart.lib exit 1 # [win] - - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-odeTargets.cmake exit 1 # [win] - - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-bulletTargets.cmake exit 1 # [win] + - name: dartsim + requirements: + run: + - {{ pin_subpackage('dartsim-cpp', exact=True) }} + - {{ pin_subpackage('dartpy', exact=True) }} + - python + - numpy + test: + imports: + - dartpy + commands: + - test -f $PREFIX/lib/libdart.dylib # [osx] + - test -f $PREFIX/lib/libdart.so # [linux] + - test -f $PREFIX/share/dart/cmake/dart_collision-odeTargets.cmake # [not win] + - test -f $PREFIX/share/dart/cmake/dart_collision-bulletTargets.cmake # [not win] + - if not exist %LIBRARY_LIB%\\dart.lib exit 1 # [win] + - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-odeTargets.cmake exit 1 # [win] + - if not exist %PREFIX%\\Library\\share\\dart\\cmake\\dart_collision-bulletTargets.cmake exit 1 # [win] about: home: http://dartsim.github.io/ diff --git a/recipe/remove-opencl.patch b/recipe/remove-opencl.patch new file mode 100644 index 0000000..af044df --- /dev/null +++ b/recipe/remove-opencl.patch @@ -0,0 +1,27 @@ +diff --git a/setup.py b/setup.py +index e24332b0bd9c..2cd9c5c25759 100644 +--- a/setup.py ++++ b/setup.py +@@ -135,22 +135,6 @@ class CMakeBuild(build_ext): + "-DCMAKE_OSX_ARCHITECTURES={}".format(";".join(archs)) + ) + +- # Get the location of Homebrew prefix and specify the location of OpenCL headers for macOS +- homebrew_prefix = ( +- subprocess.check_output(["brew", "--prefix"]).decode().strip() +- ) +- opencl_headers_dir = ( +- f"{homebrew_prefix}/opt/opencl-headers/share/cmake/OpenCLHeaders" +- ) +- opencl_headerscpp_dir = f"{homebrew_prefix}/opt/opencl-clhpp-headers/share/cmake/OpenCLHeadersCpp" +- cmake_args.extend( +- [ +- f"-DOpenCLHeaders_DIR={opencl_headers_dir}", +- f"-DOpenCLHeadersCpp_DIR={opencl_headerscpp_dir}", +- f"-DCMAKE_PREFIX_PATH={homebrew_prefix}", +- ] +- ) +- + print(f"[DEBUG] cmake_args: {cmake_args}") + + # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level From ec63436adb336e449374f693f7e9a1d07713a2e2 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 8 Sep 2024 10:40:38 -0700 Subject: [PATCH 2/5] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.39.1, and conda-forge-pinning 2024.09.07.19.33.02 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 586e427..2f9619c 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ Current release info | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-dartpy-green.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/dartpy.svg)](https://anaconda.org/conda-forge/dartpy) | | [![Conda Recipe](https://img.shields.io/badge/recipe-dartsim-green.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/dartsim.svg)](https://anaconda.org/conda-forge/dartsim) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-dartsim--cpp-green.svg)](https://anaconda.org/conda-forge/dartsim-cpp) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/dartsim-cpp.svg)](https://anaconda.org/conda-forge/dartsim-cpp) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/dartsim-cpp.svg)](https://anaconda.org/conda-forge/dartsim-cpp) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/dartsim-cpp.svg)](https://anaconda.org/conda-forge/dartsim-cpp) | Installing dartsim ================== @@ -98,16 +99,16 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `dartpy, dartsim` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `dartpy, dartsim, dartsim-cpp` can be installed with `conda`: ``` -conda install dartpy dartsim +conda install dartpy dartsim dartsim-cpp ``` or with `mamba`: ``` -mamba install dartpy dartsim +mamba install dartpy dartsim dartsim-cpp ``` It is possible to list all of the versions of `dartpy` available on your platform with `conda`: From e10743687f8967f1e3dc558e6c65465bb3f8ade5 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 8 Sep 2024 10:44:48 -0700 Subject: [PATCH 3/5] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.39.1, and conda-forge-pinning 2024.09.07.19.33.02 --- .ci_support/linux_64_.yaml | 16 ++++++++++++++++ .ci_support/linux_aarch64_.yaml | 16 ++++++++++++++++ .ci_support/linux_ppc64le_.yaml | 16 ++++++++++++++++ .ci_support/osx_64_.yaml | 22 +++++++++++++++++++--- .ci_support/osx_arm64_.yaml | 16 ++++++++++++++++ .ci_support/win_64_.yaml | 17 +++++++++++++++++ 6 files changed, 100 insertions(+), 3 deletions(-) diff --git a/.ci_support/linux_64_.yaml b/.ci_support/linux_64_.yaml index ad7040e..ded8bde 100644 --- a/.ci_support/linux_64_.yaml +++ b/.ci_support/linux_64_.yaml @@ -34,6 +34,20 @@ libode: - 0.16.2 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -47,3 +61,5 @@ zip_keys: - cxx_compiler_version - - c_stdlib_version - cdt_name +- - python + - numpy diff --git a/.ci_support/linux_aarch64_.yaml b/.ci_support/linux_aarch64_.yaml index 9ecf375..9523835 100644 --- a/.ci_support/linux_aarch64_.yaml +++ b/.ci_support/linux_aarch64_.yaml @@ -38,6 +38,20 @@ libode: - 0.16.2 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -51,3 +65,5 @@ zip_keys: - cxx_compiler_version - - c_stdlib_version - cdt_name +- - python + - numpy diff --git a/.ci_support/linux_ppc64le_.yaml b/.ci_support/linux_ppc64le_.yaml index 92d8cf8..d7f12f3 100644 --- a/.ci_support/linux_ppc64le_.yaml +++ b/.ci_support/linux_ppc64le_.yaml @@ -32,6 +32,20 @@ libode: - 0.16.2 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -45,3 +59,5 @@ zip_keys: - cxx_compiler_version - - c_stdlib_version - cdt_name +- - python + - numpy diff --git a/.ci_support/osx_64_.yaml b/.ci_support/osx_64_.yaml index 9ace0b5..62de0e0 100644 --- a/.ci_support/osx_64_.yaml +++ b/.ci_support/osx_64_.yaml @@ -1,7 +1,7 @@ MACOSX_DEPLOYMENT_TARGET: -- '10.13' +- '10.15' MACOSX_SDK_VERSION: -- '10.13' +- '10.15' assimp: - 5.4.2 bullet_cpp: @@ -13,7 +13,7 @@ c_compiler_version: c_stdlib: - macosx_deployment_target c_stdlib_version: -- '10.13' +- '10.15' channel_sources: - conda-forge channel_targets: @@ -36,6 +36,20 @@ macos_machine: - x86_64-apple-darwin13.4.0 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -47,3 +61,5 @@ urdfdom: zip_keys: - - c_compiler_version - cxx_compiler_version +- - python + - numpy diff --git a/.ci_support/osx_arm64_.yaml b/.ci_support/osx_arm64_.yaml index d8a666d..d3283a6 100644 --- a/.ci_support/osx_arm64_.yaml +++ b/.ci_support/osx_arm64_.yaml @@ -36,6 +36,20 @@ macos_machine: - arm64-apple-darwin20.0.0 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -47,3 +61,5 @@ urdfdom: zip_keys: - - c_compiler_version - cxx_compiler_version +- - python + - numpy diff --git a/.ci_support/win_64_.yaml b/.ci_support/win_64_.yaml index d50f49b..862b782 100644 --- a/.ci_support/win_64_.yaml +++ b/.ci_support/win_64_.yaml @@ -24,8 +24,22 @@ libode: - 0.16.2 nlopt: - '2.8' +numpy: +- '1.22' +- '1.23' +- '1.26' +- '1.22' perl: - 5.32.1 +pin_run_as_build: + python: + min_pin: x.x + max_pin: x.x +python: +- 3.10.* *_cpython +- 3.11.* *_cpython +- 3.12.* *_cpython +- 3.9.* *_cpython spdlog: - '1.14' target_platform: @@ -34,3 +48,6 @@ tinyxml2: - '10' urdfdom: - '4.0' +zip_keys: +- - python + - numpy From be18ab8d0ffeb72e7de41805a4899f3bb0ac056f Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 8 Sep 2024 10:49:51 -0700 Subject: [PATCH 4/5] Add setuptools --- recipe/build_py.sh | 4 +++- recipe/meta.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/recipe/build_py.sh b/recipe/build_py.sh index 5e1bdca..640123e 100644 --- a/recipe/build_py.sh +++ b/recipe/build_py.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -euxo pipefail + # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level if [[ ${target_platform} == "linux-ppc64le" ]]; then export CMAKE_BUILD_PARALLEL_LEVEL=1 @@ -12,4 +14,4 @@ else fi # Install the Python package -python -m pip install . +python -m pip install . -vv diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 3fcce5d..ff90960 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -103,6 +103,7 @@ outputs: - numpy - pip - python + - setuptools run: - {{ cdt('mesa-libgl-devel') }} # [linux64] - {{ cdt('mesa-libglu-devel') }} # [linux64] From 6740f28bad730ef996f30040e86f73aa0ef64f3a Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 8 Sep 2024 13:13:33 -0700 Subject: [PATCH 5/5] Add libgl --- recipe/meta.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ff90960..cd3e36d 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -76,6 +76,10 @@ outputs: - name: dartpy script: build_py.sh # [unix] script: bld_py.bat # [win] + build: + skip: true # [linux and not x86_64] + skip: true # [osx] + skip: true # [win] requirements: build: - {{ compiler('c') }} @@ -99,16 +103,19 @@ outputs: - numpy # [build_platform != target_platform and backend == "python3"] host: - {{ pin_subpackage('dartsim-cpp', exact=True) }} - - xorg-libxfixes # [linux] + - libgl # [linux] - numpy - pip - python + - requests - setuptools + - xorg-libxfixes # [linux] run: - - {{ cdt('mesa-libgl-devel') }} # [linux64] + - {{ cdt('mesa-libgl-devel') }} # [linux64] - {{ cdt('mesa-libglu-devel') }} # [linux64] - - {{ cdt('mesa-dri-drivers') }} # [linux] + - {{ cdt('mesa-dri-drivers') }} # [linux] - {{ pin_subpackage('dartsim-cpp', exact=True) }} + - libgl # [linux] - libglu - numpy - python