Skip to content

Commit

Permalink
Update dependencies on OSX (#2976)
Browse files Browse the repository at this point in the history
Upadte dependencies on OSX
  • Loading branch information
AntoinePrv authored Nov 14, 2023
1 parent 4fe976d commit e696705
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions Taskfile.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 3 additions & 2 deletions dev/environment-dev-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dev/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e696705

Please sign in to comment.