-
Notifications
You must be signed in to change notification settings - Fork 472
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
Problem with Setuptools #1008
Comments
Cannot reproduce. Please provide the versions of the different packages you are using. |
I am using: |
I think your installation of setuptools is incomplete as |
Yes I am using linux (arch). |
I am pretty sure that you setuptools instalation is broken. |
Since I hit the very same issue after doing a
So yes, you should directly be using |
thanks for investigating. My reason for choosing to use Do you want to submit a PR? |
Btw pkg_resources from setuptools can be replaced with standard library importlib.metadata & importlib.resources from Python 3.8 & Python 3.7 respectively. There are backports for both. |
thanks for the tip. Unless I'm missing something, neither of those libraries provide version comparison, though? ( |
and Duck typing wouldn't work? def __matmul__(self, other):
try:
# Use NumPy ufunc (existing since 1.16) for matrix multiplication
return np.matmul(self, other)
except AttributeError:
return NotImplemented |
@jthielen, any thoughts on this? |
@keewis Indeed, However, if the version check needs to be removed, I'm sure a PR would be welcome to do so. |
I think it should be enough to add the (currently indirect) dependency The With that said, @dev-zero: do you want to put in a PR? Otherwise I'd do it. |
1077: add packaging to the dependencies r=hgrecco a=keewis Since a few people reported trouble with the `setuptools` vendoring mechanism (mainly because the ArchLinux package of `setuptools` does not include the vendoring part), this makes `pint` depend directly on `packaging`. We also depend on `setuptools` which in turn depends on `packaging`, but this way the dependency graph is more explicit. We can revert this once we require `numpy >= 1.16` and are able to remove the version check. - [x] Closes #1008 (@hgrecco, could you reopen that issue so we can close it?) - [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors - [ ] The change is fully covered by automated unit tests - [ ] Documented in docs/ as appropriate - [ ] Added an entry to the CHANGES file Co-authored-by: Keewis <[email protected]>
Hello guys, I have found a problem with setuptools.
In File quantity.py I needed to replace:
from pkg_resources.extern.packaging import version
with
# from packaging import version
I think pkg_resources.extern is no longer provided by setuptools.
This is the first time I am writing something on Github, maybe you can point me to
a resource or tell me what to do in case I find such bugs in open sources projects.
The text was updated successfully, but these errors were encountered: