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

Change header name in netcdf-sys #3

Merged
merged 10 commits into from May 13, 2017
Merged

Conversation

evomassiny
Copy link
Collaborator

Hello,

I wasn't able to build netcdf-sys without renaming "netcdf_v4.3.3.1.h" to "netcdf.h", and without changing the gcc call in "netcdf-sys/build.rs" (to include "netcdf.h").
I've made a fork that I could compile, it does work but some units tests fail.
I assume it's caused by my version of libnetcdf-dev. (1:4.1.3-7ubuntu2 amd64).

I'm both new to rust and to the netcdf file format :S, I really hope I'm not wasting your time.
Best regards,

evomassiny

@mhiley
Copy link
Collaborator

mhiley commented Sep 23, 2016

Hello, thanks for the pull request!

I bet your suspicion about netcdf versioning issues is correct; I really only ever tested this on one netcdf version. I'd like to look into these issues myself and also investigate why the CI builds are failing after d841167 before accepting your pull request though.. I'll try to check it out this weekend!

@evomassiny
Copy link
Collaborator Author

Hello again,

After removing the "nc_write" flag in the "nc_create" call, ( src/file.rs ) every test succeed :) (commit [https://github.com//pull/3/commits/aa7f785e9e7d9ea02e30e1232f36db60f2a9192a] ).
Thanks for your time

@mhiley
Copy link
Collaborator

mhiley commented Sep 23, 2016

Right, I believe that the unit tests succeed for you, but something in commit d841167 caused the Travis Continous Integration builds to start failing. (That's the little red X's next to the commit hashes in the pull request). See for example:

https://travis-ci.org/mhiley/rust-netcdf/builds/162049536

The log message from CI builds aren't very helpful, unfortunately. I'll try to dig in more this weekend.

@mhiley
Copy link
Collaborator

mhiley commented Sep 23, 2016

Oh and by the way, what Rust and Cargo versions are you running?

@evomassiny
Copy link
Collaborator Author

I didn't knew about Travis (I'm quite new to github) :/, i will look into it.
About my config : i'm using rustc 1.11.0 (9b21dcd6a 2016-08-15) and cargo 0.12.0-nightly (6b98d1f 2016-07-04).

@evomassiny
Copy link
Collaborator Author

Hello,

After 7 month, I've decided to give it another try :)
I manage to get the Travis build system to work by modifying the travis.yml file, I've basically adapted the one from the python netCDF4 module repository.
The build works for the stable, beta and nightly version of rust.
Thanks for your time.

@evomassiny
Copy link
Collaborator Author

Hello again,
Have you had time to look at it ?
I would like to do further improvement to the "Variable" struct, so the user could get its value
as an ndarray, if it's ok with you.

@mhiley
Copy link
Collaborator

mhiley commented May 13, 2017

This is great, sorry I missed your comment a few weeks ago and thanks for getting digging into it and getting the Travis build working again!

@mhiley mhiley merged commit b8f0857 into georust:master May 13, 2017
@evomassiny evomassiny deleted the master branch May 14, 2017 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants