-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
-
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
Module with __init__.pyx is not recognized by setuptools.find_packages() #1509
Comments
I doubt it would hurt much to have @Jonast For now, I would just manually specify the package you want like this: packages = setuptools.find_packages('.') + ['mypkg.mod_with_initpyx'] Also, on the subject of " |
I already use an Then again, Cython itself has a bug that breaks But it'd be nice to see it solved properly in setuptools, eventually. |
For what it's worth, Cython has now fixed this bug, so the only remaining issue with this sort of module is this setuptools bug here. Is there chance this limitation will be fixed? It's a bit ugly that |
@Jonast I have no opposition to fixing it in principle, I'm just mildly worried that it might cause unforeseen problems. Feel free to send a PR. I'm not sure what kind of research we can do that would give us confidence in merging and releasing something that changes the behavior of One possibility (and I'm not sure how the other maintainers feel about this), is that we can add a "feature flag" here to ease in this change, so the change would roll out in 3 stages:
A stronger version of step 1 would be to actually raise an error if any This whole thing may be a bit overboard, though. I'd be willing to be convinced that it's not such a big deal to add this without the complicated rollout. |
Actually, one other thing to consider here - maybe we should be somewhat getting out of the business of explicitly supporting We could instead provide some hooks in |
I assume this is at its core mostly a one-line change and the difficulty lies in the rollout. Therefore I suggest someone who has done such a rollout and has a better idea on how a deprecation mechanism should be put in place would be better suited for taking a look at this |
A module with a Cythonized init.pyx (but other files being a *.py file) is not recognized by setuptools.find_packages():
However, if I put an
__init__.py
in there as well, I don't think I can properly import the Cython.so
module anymore. Is this a bug of sorts? I don't know what to do about this...The text was updated successfully, but these errors were encountered: