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

Consider adding force_rebuild argument to pyximport.install() #3121

Open
realead opened this issue Sep 2, 2019 · 0 comments

Comments

@realead
Copy link
Contributor

commented Sep 2, 2019

It is quite convenient to use pyximport.install() for adding tests of Cython's cdef-functionality to the usual testing-infrastructure.

However, the pyx-modules aren't rebuild when only dependencies are changed but not the main-pyx-file.

There are remedies, but none of them as simple/clear as an explicit force_rebuild-argument would be. For example:
- using pyxdep-files which have the tendency not to get updated
- pyximport.install(setup_args = {"script_args" : ["--force"]}) (not directly clear it can be achieved this way)
- deleting the cache (needs some tinkering with testing infrastructure)
- using tempfile.TemporaryDirectory() for build_dir -argument

There is already force_rebuild-argument in pyxbuild.pyx_to_dll.

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