Skip to content

Commit

Permalink
Merge pull request #75 from jslee02/dartpy
Browse files Browse the repository at this point in the history
Add dartpy
  • Loading branch information
jslee02 authored Sep 8, 2024
2 parents ceca829 + 6740f28 commit e54f1b7
Show file tree
Hide file tree
Showing 14 changed files with 310 additions and 64 deletions.
16 changes: 16 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -47,3 +61,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - python
- numpy
16 changes: 16 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -51,3 +65,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - python
- numpy
16 changes: 16 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -45,3 +59,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - python
- numpy
22 changes: 19 additions & 3 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
- '10.15'
MACOSX_SDK_VERSION:
- '10.13'
- '10.15'
assimp:
- 5.4.2
bullet_cpp:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -47,3 +61,5 @@ urdfdom:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - python
- numpy
16 changes: 16 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -47,3 +61,5 @@ urdfdom:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - python
- numpy
17 changes: 17 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -34,3 +48,6 @@ tinyxml2:
- '10'
urdfdom:
- '4.0'
zip_keys:
- - python
- numpy
24 changes: 13 additions & 11 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
9 changes: 9 additions & 0 deletions recipe/bld_py.bat
Original file line number Diff line number Diff line change
@@ -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 .
6 changes: 5 additions & 1 deletion recipe/build.sh → recipe/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions recipe/build_py.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/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
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 . -vv
2 changes: 2 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c_stdlib_version: # [osx and x86_64]
- '10.15' # [osx and x86_64]
Loading

0 comments on commit e54f1b7

Please sign in to comment.