Update dependencies on OSX (#2976)

Upadte dependencies on OSX
This commit is contained in:
Antoine Prouvost 2023-11-14 08:51:15 +01:00 committed by GitHub
parent 4fe976d871
commit e6967058a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -11,22 +11,24 @@ vars:
CMAKE_PRESET: 'mamba-unix-shared-debug-dev'
CACHE_DIR: '{{.BUILD_DIR}}/pkgs'
CPU_PERCENTAGE: 75
CPU_COUNT:
CPU_TOTAL:
sh: >-
{{- if eq OS "linux" -}}
echo $(($(cat /proc/cpuinfo | grep processor | wc -l) * {{.CPU_PERCENTAGE}} / 100))
cat /proc/cpuinfo | grep processor | wc -l
{{- else if eq OS "darwin" -}}
sysctl -n hw.ncpu
{{- else -}}
echo 1
{{- end -}}
CPU_COUNT:
sh: echo $(({{.CPU_TOTAL}} * {{.CPU_PERCENTAGE}} / 100))
tasks:
_create-env:
run: 'when_changed'
internal: true
cmds:
# Pin some version of Python so that we don' develop witha too recent version
- 'micromamba create --yes --prefix "{{.prefix}}" python=3.9'
- 'micromamba install --yes --prefix "{{.prefix}}" --file ./dev/environment-dev.yml'
- 'micromamba create --yes --prefix "{{.prefix}}" --file ./dev/environment-dev.yml'
- 'micromamba install --yes --prefix "{{.prefix}}" --file ./dev/environment-dev-extra.yml'
sources:
- './dev/environment-dev.yml'

View File

@ -10,8 +10,9 @@ dependencies:
- lld
- cmake-format
# C++ Debugging
- gdb
- valgrind
- sel(linux): gdb
- sel(osx): lldb
- sel(linux): valgrind # Out of date on MacOS
# Python LSP support
- python-lsp-server-base
- python-lsp-black

View File

@ -24,6 +24,7 @@ dependencies:
# micromamba dependencies
- cli11 >=2.2
# micromamba test dependencies
- python =3.9 # Some not too recent version
- mitmproxy
- pytest >=7.3.0
- pytest-asyncio