Repository navigation
Conversation
Co-authored-by: Serguei E. Leontiev <leo@sai.msu.ru>
|
Split into focused PRs for packaging, CI, and documentation. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17442f7586
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| install: | ||
| uv sync | ||
| prek install |
There was a problem hiding this comment.
Install prek before invoking it
In a clean development checkout where only uv is available, uv sync cannot provide this executable because prek is absent from every dependency group in pyproject.toml; the next command therefore fails with prek: command not found, so make install cannot bootstrap the newly added QA workflow. Declare prek as a development dependency and invoke it through uv run, or install/run it explicitly with uvx.
Useful? React with 👍 / 👎.
| " elif fc == \"nvfortran\":\n", | ||
| " nv_path = shutil.which(fc)\n", | ||
| " nv_libdir = os.path.dirname(os.path.dirname(nv_path)) + \"/lib\"\n", | ||
| " if nv_libdir not in os.environ[\"LD_LIBRARY_PATH\"]:\n", |
There was a problem hiding this comment.
Guard access to LD_LIBRARY_PATH
When this notebook is run on a system where nvfortran is available but LD_LIBRARY_PATH is unset—a valid and common shell configuration—indexing os.environ raises KeyError before the explicit-compiler example can compile. Use os.environ.get("LD_LIBRARY_PATH", "") (and preferably split it as a path list) for this optional environment variable.
Useful? React with 👍 / 👎.
Summary
Closes #17
Closes #50
Closes #52
Closes #55
Verification
prek run --all-filesJUPYTER_PLATFORM_DIRS=1 uv run --group dev pytestuv build#41remains open: persistent compiled-module reuse needs separate ABI and dependency validation.