-
Notifications
You must be signed in to change notification settings - Fork 895
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
CLI reported by uv run
on Windows is not found on invocation
#8770
Comments
Just to provide you with what you are lacking there. Nuitka is providing its own scripts for Windows, these are cmd files, passed as It seems, as an incompatibility to normal pip/setuptools, you don't copy them. They need no treatment at all, just plain copy. |
The output of 'The following commands are available in the environment' is based on listing the scripts path in the virtual environment, so something is definitely installed there as |
@zanieb -- Didn't we have some change that looks at the |
Are you thinking of #6683? I don't think that would help here. How are we suppose to execute For reference, the script looks like this: https://github.com/Nuitka/Nuitka/blob/ff030b7ad508a1773c2d2563b55fee4b5e3eac9a/misc/nuitka.cmd |
I believe the recommendation is to use the formalized executable entrypoints.
|
Yes, I am sure that's the recommendation, however, with Nuitka supporting a wide range of Python versions, some of which predate these things being any good, I really don't want to deal with making the move like that. Do you consider to become compatible by placing the said scripts unchanged to where they belong, even though packagers should (generally) not do it? And if that's not the case, is there a way for me to detect installation by uv pip so I can inform the users, that they should use standard pip instead, and alternatively how to invoke it, or maybe install a nuitka console script on Windows, that does only that? |
I just updated my test case with
So off course calling
Instead, calling
|
Add extra .cmd suffix for Nuitka command on Windows. Refs: Nuitka/Nuitka#3173 astral-sh/uv#8770 astral-sh/uv#9099
Sweet, thank you for testing it. That seems reasonable to me. We could special case |
I would not say so. In both powershell and cmd on windows you can execute a .cmd and a .ps1 file without the extension. E.g. the following would work assuming nuitka is installed in the venv .venv
Infact the same would also work in nu-shell on windows It is however different from the behaviour of Rust's std lib Spawn |
Oh, I see. Hm. Thanks for that additional context. We can track in #9151 |
Tl;Dr: On Windows
nuitka
is reported as an available CLI in auv
venv:But its invocation fails:
Context
This happened in a GitHub action runner on
windows-2022
. But the exact same sequence and invocation works perfectly onmacos-15
,macos-13
orubuntu-24.04
.Fix
To fix the issue, I have to use an indirect call to the Python interpreter on
windows-2022
:Reproduction
To reproduce the issue, on Windows:
This issue has been reported and being discussed in Nuitka project at: Nuitka/Nuitka#3173
The text was updated successfully, but these errors were encountered: