-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Test that Hatch environments are discovered and activated #23088
Comments
@ofek @flying-sheep You might need to report the MSI as safe: Another issue is that the publisher on the MSI is unknown, it is getting blocked by defender. You might need a code signing certificate for this. |
@ofek is the maintainer of both Hatch and PyApp (the framework to create the Hatch installer), and AFAIK also using Windows, so he’d need to sign it. I personally don’t have access to any Windows machine and am therefore blissfully unaware of all the hoops Microsoft makes poor developers jump through to distribute their applications in a way that doesn’t scare users off 😄 |
The installers are currently created with PyOxidizer but I only have a certificate from the PSF for macOS. I'll ask about Windows today, it hasn't been a high priority. |
Refs: #22810
Complexity: 4
Authors: @flying-sheep, @karrtikr
Create Issue
using the GUI installers on macOS or windows
using your system package manager on Arch Linux or Fedora
using
pipx install Hatch
on other Linux distributions. Please make sure you set your PATH correctly in this case.Setting PATH on Linux
If you cannot install Hatch system-wide, you might need to add
$HOME/.local/bin
to your PATH environment variable for your graphical session, not just your terminal. Check like this:If the the directory is not in there, you need to add it in your session startup script, in a way that depends on your desktop environment:
dependencies
:hatch run ...
, e.g.hatch run python -V
(there is no configuration necessary for Hatch to work in a simple case like this)testproj
as an interpreter using Python: Select Interpreter commandpython.terminal.activateEnvironment
setting set totrue
, the environment should be activated:Run
pip -V
and compare if the path starts with the path displayed byhatch env find
(pip’s contains an additionallib/pythonX.YZ/site-packages/pip
)The text was updated successfully, but these errors were encountered: