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

Code Versioning for fpy_auxiliary #91

Open
rosenbrockc opened this issue May 18, 2016 · 0 comments
Open

Code Versioning for fpy_auxiliary #91

rosenbrockc opened this issue May 18, 2016 · 0 comments

Comments

@rosenbrockc
Copy link
Owner

Currently, when a unit test requires the autoclass feature, fortpy compiles the auxiliary module automatically, but only if the code version has changed. But what defines the code version? The template version number shipping with fortpy will hardly ever change, but when it does, then the code knows to recompile. However, when the user's version changes, we have no idea so the newest versions of the auxiliary module don't necessarily get copied over.

We could have it recompile and copy auxiliary every time a test is run to be safe, but that is really wasteful because most user types don't change very often in a code's development cycle. We could have the user set the version number in a separate file, but that can be irritating for them. Maybe it is best to have a flag in runtests.py that forces a recompile and copy. Then, if the user is having issues, they could force a re-copy and it would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant