-
Notifications
You must be signed in to change notification settings - Fork 144
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
main/python-numpy: make tests depend on parent + checkdepends #3474
base: master
Are you sure you want to change the base?
Conversation
hm no, should prolly be all of checkdepends |
0118f18
to
8c26bd3
Compare
main/python-numpy/template.py
Outdated
@@ -101,7 +101,10 @@ def post_install(self): | |||
@subpackage("python-numpy-tests") | |||
def _(self): | |||
self.subdesc = "tests" | |||
self.depends += ["python"] | |||
self.depends = [ | |||
*self.parent.checkdepends, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be just checkdepends...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the reason for this is trying
$ python
Python 3.12.8 (main, Jan 14 2025, 23:43:09) [Clang 19.1.6] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.12/site-packages/numpy/_pytesttester.py", line 126, in __call__
import pytest
ModuleNotFoundError: No module named 'pytest'
after purposefully installing python-numpy-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no i mean
you can write just checkdepends
instead of self.parent.checkdepends
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o yeah
8c26bd3
to
df59ddb
Compare
this time for real i prommy