Skip to content
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

Export pyx file dependencies list #2851

Open
almaslov opened this Issue Feb 18, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@almaslov
Copy link

almaslov commented Feb 18, 2019

Hello!
I'm using cython with cmake in my project. There are several solutions to determine pyx file dependencies. They all parse source files with regular expressions using cmake like that: https://github.com/scikit-build/scikit-build/blob/master/skbuild/resources/cmake/UseCython.cmake#L234

I'd like to implement it as distinct tool.
Could it be useful to make cython compiler do this? Some kind of "gcc -M" behavior.

@scoder scoder changed the title pyx file dependencies list Export pyx file dependencies list Feb 18, 2019

@scoder

This comment has been minimized.

Copy link
Contributor

scoder commented Feb 18, 2019

This could get implemented, sure. But in the end, generated dependency lists always get outdated.

You could also just blindly call cythonize $(find -name "*.pyx") and see which .c files it regenerates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.