2023-03-29 20:28:08 +00:00
|
|
|
{
|
2024-09-26 19:58:15 +00:00
|
|
|
"image": "ghcr.io/python/devcontainer:2024.09.25.11038928730",
|
2023-03-29 20:28:08 +00:00
|
|
|
"onCreateCommand": [
|
|
|
|
// Install common tooling.
|
|
|
|
"dnf",
|
|
|
|
"install",
|
|
|
|
"-y",
|
|
|
|
"which",
|
|
|
|
"zsh",
|
2023-05-25 20:03:55 +00:00
|
|
|
"fish",
|
|
|
|
// For umask fix below.
|
|
|
|
"/usr/bin/setfacl"
|
2023-03-29 20:28:08 +00:00
|
|
|
],
|
|
|
|
"updateContentCommand": {
|
|
|
|
// Using the shell for `nproc` usage.
|
|
|
|
"python": "./configure --config-cache --with-pydebug && make -s -j `nproc`",
|
|
|
|
"docs": [
|
|
|
|
"make",
|
|
|
|
"--directory",
|
|
|
|
"Doc",
|
|
|
|
"venv",
|
|
|
|
"html"
|
|
|
|
]
|
|
|
|
},
|
2023-05-25 20:03:55 +00:00
|
|
|
"postCreateCommand": {
|
|
|
|
// https://github.com/orgs/community/discussions/26026
|
|
|
|
"umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
|
|
|
|
"umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
|
|
|
|
},
|
2023-03-29 20:28:08 +00:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
// Highlighting for Parser/Python.asdl.
|
|
|
|
"brettcannon.zephyr-asdl",
|
|
|
|
// Highlighting for configure.ac.
|
|
|
|
"maelvalais.autoconf",
|
|
|
|
// C auto-complete.
|
|
|
|
"ms-vscode.cpptools",
|
2023-05-25 20:03:55 +00:00
|
|
|
// To view HTML build of docs.
|
|
|
|
"ms-vscode.live-server",
|
|
|
|
// Python auto-complete.
|
|
|
|
"ms-python.python"
|
2023-03-29 20:28:08 +00:00
|
|
|
],
|
|
|
|
"settings": {
|
2023-04-03 23:47:48 +00:00
|
|
|
"C_Cpp.default.compilerPath": "/usr/bin/clang",
|
2023-03-29 20:28:08 +00:00
|
|
|
"C_Cpp.default.cStandard": "c11",
|
|
|
|
"C_Cpp.default.defines": [
|
2023-04-03 23:47:48 +00:00
|
|
|
"CONFIG_64",
|
2023-03-29 20:28:08 +00:00
|
|
|
"Py_BUILD_CORE"
|
|
|
|
],
|
2023-04-03 23:47:48 +00:00
|
|
|
"C_Cpp.default.includePath": [
|
|
|
|
"${workspaceFolder}/*",
|
|
|
|
"${workspaceFolder}/Include/**"
|
|
|
|
],
|
2023-03-29 20:28:08 +00:00
|
|
|
// https://github.com/microsoft/vscode-cpptools/issues/10732
|
|
|
|
"C_Cpp.errorSquiggles": "disabled",
|
|
|
|
"editor.insertSpaces": true,
|
|
|
|
"editor.rulers": [
|
|
|
|
80
|
|
|
|
],
|
|
|
|
"editor.tabSize": 4,
|
|
|
|
"editor.trimAutoWhitespace": true,
|
|
|
|
"files.associations": {
|
|
|
|
"*.h": "c"
|
|
|
|
},
|
|
|
|
"files.encoding": "utf8",
|
|
|
|
"files.eol": "\n",
|
|
|
|
"files.insertFinalNewline": true,
|
|
|
|
"files.trimTrailingWhitespace": true,
|
|
|
|
"python.analysis.diagnosticSeverityOverrides": {
|
|
|
|
// Complains about shadowing the stdlib w/ the stdlib.
|
|
|
|
"reportShadowedImports": "none",
|
|
|
|
// Doesn't like _frozen_importlib.
|
|
|
|
"reportMissingImports": "none"
|
|
|
|
},
|
|
|
|
"python.analysis.extraPaths": [
|
|
|
|
"Lib"
|
|
|
|
],
|
|
|
|
"python.defaultInterpreterPath": "./python",
|
|
|
|
"[restructuredtext]": {
|
|
|
|
"editor.tabSize": 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|