-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
environment fails to find system-site-packages #1451
Comments
How was Hatch installed? |
pipx |
@ofek Any further questions, things to try? |
Does it work if you use the version of Hatch that your distribution provides? |
AFAICT Debian doesn't provide Hatch via apt. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My project uses libclang and its python bindings. These need to be installed via the distro's package manager; the clang bindings on pypi aren't official, nor are they guaranteed to be compatible with the libclang installed. So I rely on the system site packages. (On Debian, they all get installed via
apt install python3-clang
.)I've used this, and it has worked fine:
However, my attempts at getting this to work with hatch environments have been unsuccesful.
The
requirements.txt
file contains pretty much the same stuff as[tool.hatch.envs.test]
, in particular clang isn't mentioned there. It's supposed to come from the system.However,
hatch run test:run
fails to find the clang package.Any clues on how to debug this or make it work?
The text was updated successfully, but these errors were encountered: