-
Notifications
You must be signed in to change notification settings - Fork 15
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
Dependency on dill #1
Comments
Thanks for letting me know. I actually started using six from astropy in the code I just forgot to update the documents. As for dill, it should be listed in the docs as an optional requirement. Everything runs fine without dill but I use it to serialize the pipeline before it runs each step so that if something happens during execution a user can reload the pipeline, edit any parameters that might have made it crash, and restart it where they left off. I found that pickle wasn't sufficient for some of my pipelines and I assume it will be the same for others. If this becomes too much of a problem I can have the code try to use pickle if dill isn't present but since dill is included in conda now as well as available on pypi I'm hoping it is more stable for everyone these days. |
Ok, I just updated the docs to remove the six dependency and added dill as an optional requirement. I also moved dill into a function in the test module so that it is not a required dependency. You should be able to install without it now. Let me know if you have any more problems. |
I'm still getting this fail because I don't have dill:
The recommended way to skip tests if optional dependencies are missing: You have to add this here: Here's an example how to configure the travis-ci test matrix to have a build without the optional dependencies ... this is pretty useful: |
Sorry, I didn't realize that the test functions were run when installing a -Fred
|
They aren’t. |
Gotcha. Thanks for the help, I've added this to my toolkit but decided to do it a bit differently. I feel like serialization is an important part of the pipeline so I modified the code slightly so that if dill fails to import, the Pipeline tries to save itself using pickle (and I fixed the testing module accordingly) and warns the user if it fails. |
@fred3m – Thanks for making this package!
I get this:
dill is not listed here:
http://astromatic-wrapper.readthedocs.org/en/latest/install.html#requirements
I've had several problems installing dill in the past, so if you can avoid the dependency somehow, I think you should.
Also here
six
is listed as a dependency:http://astromatic-wrapper.readthedocs.org/en/latest/install.html#requirements
Astropy bundles six, so you can avoid the extra dependency and having to explain about it to users by using
The text was updated successfully, but these errors were encountered: