-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[casacore] Add casacore port #31481
[casacore] Add casacore port #31481
Conversation
Port of casacore: |
SOURCE_PATH "${src}" | ||
OPTIONS | ||
${FEATURE_OPTIONS} | ||
-DBUILD_PYTHON=OFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to include the python build here? Without it it will not be possible to link python-casacore against this build
Should likely also set DCMAKE_BUILD_TYPE=Release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to include the python build here? Without it it will not be possible to link python-casacore against this build
This disables PYTHON 2 support by default -- I don't believe python-casacore is building python 2 wheels these days
https://github.com/casacore/python-casacore/tree/master/.github/workflows
Should likely also set DCMAKE_BUILD_TYPE=Release
A vcpkg install casacore
will install both Release and Debug builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok sorry I think I was confused. Yes this is the default:
option (BUILD_PYTHON "Build the python2 bindings" NO)
option (BUILD_PYTHON3 "Build the python3 bindings" YES)
While we are here it may be advisable to still include deprecated containers and functionality - I think the synthesis library from casarest and some of the classes in casacore are still in active use in Meqtrees / makems (the sarao version)
option (BUILD_DEPRECATED "build and install deprecated classes (such as Map)" YES)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll add a feature option for BUILD_DEPRECATED
Also /cc'ing @rtobar so that someone from the casacore project can take a quick look at this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full disclosure: I'm only a semi-regular casacore contributor, but not part of the core team (e.g., I don't have write access).
I agree with the BUILD_PYTHON*
discussion, it should definitely be built against python3 and not against python2.7. And from what I know, BUILD_DEPRECATED
is still needed by a number of packages that haven't been ported to the more recent casacore releases where this was implemented (3.1 I think, so ~4 years ago "only").
SOURCE_PATH "${src}" | ||
OPTIONS | ||
${FEATURE_OPTIONS} | ||
-DBUILD_PYTHON=OFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full disclosure: I'm only a semi-regular casacore contributor, but not part of the core team (e.g., I don't have write access).
I agree with the BUILD_PYTHON*
discussion, it should definitely be built against python3 and not against python2.7. And from what I know, BUILD_DEPRECATED
is still needed by a number of packages that haven't been ported to the more recent casacore releases where this was implemented (3.1 I think, so ~4 years ago "only").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving a few comments after being summoned here
I did some investigation around making the Python builds work. Briefly when asked to compile Python3 support, casacore will link against
I don't need python3 support at the moment so I'm happy to go with (3). @FrankXie05 can you suggest any improvements on (1) and (2)? |
Ah, according to this, overlays should be used (and not separate
|
"version": "3.5.0", | ||
"description": "The casacore libraries", | ||
"homepage": "https://casacore.github.io/", | ||
"supports": "!osx & !windows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Official builds only run linux: https://github.com/casacore/casacore/tree/master/docker
I'm primarily interested in a linux casacore port
Regarding Python builds, it looks like they'd be a fair amount of work to get right. I don't personally need them right now, so I'd provide to disable this feature and log an issue for it. Similarly for other non-core features like ADIOS2 |
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxxvcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.