-
Notifications
You must be signed in to change notification settings - Fork 20
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
DEV: Can pydevtool.cli
be used to create a unified context?
#45
Comments
For devpy, the design is intended to be as simple as possible, and to only use dependencies if truly necessary. We'd have to see how it would compare to implement this outside pydevtool.cli, and also to ask whether the increased complexity is worth it. |
Ah ok, that makes sense. I was working on |
After working on some NumPy code again today, I wasted bunch of time scratching my head why
all the time. I think the gap in usability is pretty large. |
I'm not sure how to read your comment above. Can you clarify? Is it: (1) The usability gap is large enough that I prefer to customize SciPy's dev.py for NumPy, or I suspect you are hinting at (1)? I don't mind if you want to go that route. I'll keep working on the tool either way since it's being used by a few other libraries too. |
So far I've been waiting for (2). I think dependencies are necessary though when working on a numpy/scipy-sized code base, and it's hard to use devpy for numpy development right now. However, for smaller projects where (a) editing compiled code is rare and (b) that doesn't use Meson, What do you think? |
Are you happy to call the build command each time before testing, or do you want it to be smart about detecting when a build is necessary? I think the first scenario I can complete without much difficulty. |
There's no need to be smart - a do-nothing rebuild takes only about 100 ms. Also, any commit updates at least the version number when that includes a git hash, so a rebuild is very often needed and checking that is difficult. |
OK, cool, I'll get this added later today (sorry for the wasted time, that is never good!). I was trying to figure out how one would pass options through to the build via the test command, but I see SciPy's dev.py doesn't allow for that either. You have to run the dedicated build command if you want to specify flags like |
No worries. And yes, it's nothing too complicated. |
Please see #51 |
I think it makes sense for simplicity but I hope we don't repeat what we have at SciPy. In reference to dependencies, Task object provides task_dep that does a topo sort of dependencies. |
Can you explain what "I hope we don't repeat what we have at SciPy" means? In terms of dependencies: do we really need a topo sort, and when would that be useful? |
Hi sorry for the delay. I think as of now we don't have any complex dependencies and can keep it simple. As for repeating SciPy features, lets leverage pydevtool.cli if the requirement arises. |
Some targets ( Either way, there's a pattern that can be extended. I'll close this for now; feel free to open a new issue if it comes up again. |
Scipy uses
pydevtool.cli
that helps in bunching the common commands likebuild-dir
. As of today in this repo, we are repeatingbuild-dir
in every command and lack a few utility commands to infer/set python paths from these common args.I'd be happy to bunch it and refactor all the commands into a subclass of
Task
and add common inferencing functions likeDirs
but wanted to confirm if this is the right way forward or the project maintainers had something else in mind.The text was updated successfully, but these errors were encountered: