-
Notifications
You must be signed in to change notification settings - Fork 96
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
Prebuilt bindings for GDAL 3.5 #277
Conversation
This looks great @MrMuetze . Could you also adjust the CI yml file to use the |
I will have a look at this 👍 Edit: I have (hopefully) pushed the changes you mentioned :) |
and removing the job for gdal 3.1
Hmm apparently, GDAL now uses versions like:
|
Would it be an option to move away from
|
Good idea. To make it a bit more comprehensive: running
@MrMuetze can you verify your logic can parse all of these? We seem to require a numeric major, minor, patch for the way we version control features. |
My approach would not be able to support this kind of prerelease string (for betas or release candidates), but I don't think the Do you think we need to be able to parse beta or release candidate versions? If not, my approach would be sufficient and I could incorporate the changes. If not, we have to figure out something else. Edit: But all the numeric versions should be supported. 👍 |
Makes sense @MrMuetze ; I'm just seeing we can ensure better robustness. I looked into the osgeo gdal source code. Most apps in the repo seem to use /* GDAL_COMPUTE_VERSION macro introduced in GDAL 1.10 */
/* Must be used ONLY to compare with version numbers for GDAL >= 1.10 */
#ifndef GDAL_COMPUTE_VERSION
#define GDAL_COMPUTE_VERSION(maj,min,rev) ((maj)*1000000+(min)*10000+(rev)*100)
#endif
/* Note: the formula to compute GDAL_VERSION_NUM has changed in GDAL 1.10 */
#ifndef GDAL_VERSION_NUM
# define GDAL_VERSION_NUM (GDAL_COMPUTE_VERSION(GDAL_VERSION_MAJOR,GDAL_VERSION_MINOR,GDAL_VERSION_REV)+GDAL_VERSION_BUILD)
#endif The formula seems to be the same since at least 2.0.0, and the value is available as a string from the API by calling |
Yes if we can get something |
@MrMuetze let's go ahead the VERSION_NUM approach. Could you modify |
I can give it a go 👍 Edit: Not sure if my dissection of the version string is the cleanest, but it should work 😅 |
this should be a more robust approach
Thanks @MrMuetze ! bors r+ |
Build succeeded: |
Hey 👋
Here is my attempt to provide the prebuilt bindings for GDAL 3.5. I had a look at the previous PR for GDAL 3.4 and I hope I did everything in a similar way 😅
Please let me know if any changes need to be made.