Skip to content

Commit

Permalink
Add develop/devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Oct 9, 2024
1 parent b0f09d9 commit 21211d8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/develop-source/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Dev container for installing Sage from source
// See https://aka.ms/devcontainer.json for format details.
{
"name": "Source",
"containerEnv": {
"MAKE": "make -j4",
"EXTRA_SYSTEM_PACKAGES": "python3.12"
},
"onCreateCommand": ".devcontainer/onCreate.sh --sudo",
"extensions": [
"ms-python.python", // Python extension for VS Code
"charliermarsh.ruff", // Ruff extension for VS Code
],
}
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
// This settings file is not ignored by git. It should be kept in sync with
// the Sage github repo.
{
// This settings file is not ignored by git. It should be kept in sync with
// the trac repo.
"python.defaultInterpreterPath": "./venv/bin/python3",
"files.exclude": {
"**/__pycache__": true,
"src/**/*.cpp": true,
"src/**/*.so": true
},
"search.exclude": {
// Exclude symbolic links into SAGE_ROOT/pkgs/
"build/pkgs/*/src": true,
// Exclude symbolic links into SAGE_ROOT/src/
"pkgs/sage-conf_conda/sage_root": true,
"pkgs/sage-conf_pypi/sage_root": true,
"pkgs/sage-docbuild/sage_docbuild": true,
Expand Down
3 changes: 3 additions & 0 deletions build/bin/sage-print-system-package-command
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ case $system:$command in
[ "$YES" = yes ] && options="$options --yes"
[ -n "$system_packages" ] && print_shell_command conda install $options $system_packages
;;
homebrew*:update)
print_shell_command "brew update"
;;
homebrew*:install)
[ -n "$system_packages" ] && print_shell_command brew install $system_packages
;;
Expand Down

0 comments on commit 21211d8

Please sign in to comment.