You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to replicate the setup discussed in #642 on my system and I can't seem to get hatch to find other python versions other than the version that installed pipx and hatch or other versions random versions of the python executable found in my sys path.
Just as a trial I have been following the tutorial on packaging python packages but with using hatch. I added a simple test similar to what I did here.
My setup:
OS: Windows 10
pyenv-win installed through Powershell script on their Github
installed python versions 3.11.1, 3.10.9, 3.9.13, 3.8.10 and 3.7.9
pipx installed with global python version set to 3.11.1
hatch installed with pipx
project created with hatch new
project python versions set with pyenv local to include 3.9, 3.10, 3.11
Running hatch run test.py311:cov runs the tests no problem
❯ hatch run test.py310:cov
Environment `test.py310` is incompatible: cannot locate Python: 310
❯ hatch run test.py39:cov
Environment `test.py39` is incompatible: cannot locate Python: 39
If I change the global python version with pyenv global, it still only finds 311. Perhaps it has more to do with the version that installed pipx and hatch than pyenv and it is ignoring the pyenv-win setup altogether?
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I've been trying to replicate the setup discussed in #642 on my system and I can't seem to get hatch to find other python versions other than the version that installed
pipx
andhatch
or other versions random versions of the python executable found in my sys path.Just as a trial I have been following the tutorial on packaging python packages but with using hatch. I added a simple test similar to what I did here.
My setup:
pyenv-win
installed through Powershell script on their Github3.11.1
,3.10.9
,3.9.13
,3.8.10
and3.7.9
pipx
installed with global python version set to 3.11.1hatch
installed withpipx
hatch new
pyenv local
to include 3.9, 3.10, 3.11Running
hatch run test.py311:cov
runs the tests no problembut 3.10 and 3.9 versions cannot be found
❯ hatch run test.py310:cov Environment `test.py310` is incompatible: cannot locate Python: 310
❯ hatch run test.py39:cov Environment `test.py39` is incompatible: cannot locate Python: 39
If I change the global python version with
pyenv global
, it still only finds 311. Perhaps it has more to do with the version that installedpipx
andhatch
thanpyenv
and it is ignoring thepyenv-win
setup altogether?Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: