Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies on OSX #2976

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading