-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
packaging with uv+hatchling and then pip install --editable crashes with: patchspec has no attribute GitIgnoreSpec #1724
Comments
I wasn't able to reproduce: uv tool install .
uv venv
. .venv/bin/activate
uv pip install pip
pip install --editable .
You shouldn't be trying to install anything into a system install, or especially a user install. I'd always use venvs, like you see above. Not the problem here, though. |
So if I want something installed in the global environment, available from just invoking |
I did not do any of these steps:
Are they needed? Why? What do they do? Isnt this creating a venv and activating it inside the packge itself? I want to use the package from outside (other package/global env). |
If you want a command to be globally available, that's what you use But that's not why... Oh, if you've been using your user install, maybe you have an old pathspec there that's breaking the isolated install? What is the output of (UV completely disallows the |
$ pip list --user | grep pathspec
pathspec 0.11.1 I might have done one or two Got these python3 executables: $ which -a python3
/usr/bin/python3
/bin/python3 |
Description
I'm trying to package my first python project (so I might be making stupid mistakes) but I have tried in different ways the week. My package is called prawk and I want to be able to do
import prawk
in a python file outside this package. When I performpip install --editable .
in my project top folder (pyproject.toml
) is located, I get error below.Expected behavior
installation to succeed
pip version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
Python version
Python 3.10.12
OS
Ubuntu 22.04
How to Reproduce
uv
usinguv tool install .
pip install --editable .
-> error outputOutput
:
Am I missing something? Not sure what to do from here.
The text was updated successfully, but these errors were encountered: