-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
find_py_modules? #1580
Comments
I don't think it makes sense to do that. I personally find
That said, do you have a specific use case in mind? |
It's true that I am basically always using a src-type layout these days so I didn't think of the issue of find_py_modules finding e.g. setup.py itself in a non-src-type layout. OTOH we can easily make it raise if I don't think either find_packages would be significantly harder to write than find_py_modules (at least nowadays), so the complexity argument doesn't really hold: up to
The use case is to write generic |
The implementation is not the problem, the fact that the implementation is easy is actually one reason not to do it, since anyone who wants to do this fairly unusual thing can implement it themselves and make it specific enough to their workflow to avoid some of the edge cases you are likely to get in a general implementation. More importantly, |
I only raised the issue of complexity because you wrote
which I interpreted as implying that it was too hard to write otherwise(?) Anyways, feel free to close if this is not going to happen. |
Ah, no, I meant the opposite. In my opinion, ideally you also wouldn't need We can leave the ticket open for a bit so other people can weigh in, but I'm definitely -1 on this idea. The only realistic use case would be an anti-pattern, and it has the potential to cause a lot of problems if used incorrectly (and most people will just guess how it's supposed to be used based on the name, not look up the documentation on it). |
AFAICT, there is no
find_py_modules()
function that could be used as value tosetup(py_modules=...)
, similarly to how one can usesetup(packages=find_packages())
.Such a function would be a useful addition, providing benefits similar to
find_packages()
.The text was updated successfully, but these errors were encountered: