pyximport and dependencies tracking

24 views
Skip to first unread message

dvd

unread,
Mar 25, 2011, 6:02:59 AM3/25/11
to cython-users
Hi all,

we started using heavily cython relying on the pyximport facility.
Unfortunately the lack of dependencies tracking makes the daily work a
bit
annoying (change a pxd file -> run -> segfault -> rebuild -> enjoy).

We think that a possible solution could be:

* every time a pxd file is modified pyximport writes in a private
file
(under ~/.pyxbld) a list of dependencies
* a subsequent invocation of pyximport passes the list of
dependencies to the
distutils.extension.Extension constructor

Maybe Cython.Build.Dependencies.parse_dependencies could be used to
extract the
dependencies list.

If you think that it can work I can write a patch.

david

Robert Bradshaw

unread,
Mar 25, 2011, 2:07:49 PM3/25/11
to cython...@googlegroups.com

Yes, I think that would be great. The functionalities of pyximport and
Cython.Build probably overlap more than that (e.g. .pyx file ->
Extension object, and this could handles other distutils options as
well.)

- Robert

Reply all
Reply to author
Forward
0 new messages