-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for the Shapely extension #17
Conversation
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.
Looks good, but I think we should add the other library dependencies to the Config.uk
file (maybe as depends on
statements or something), like the intel-intrinsis
, libcxx*
etc.
if LIBPYTHON_SHAPELY | ||
config LIBPYTHON3_EXTENSION_SHAPELY |
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.
Why not just select LIBPYTHON_STAPELY
if the shapely extension is selected, or do a depends on
?
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.
Same as for numpy, this is the pattern for extensions and shapely isn't special enough to break it.
As for using depends on
, in Kconfig a block like
if CONDITION
config ...
endif
is by definition equivalent to
config ...
depends on CONDITION
so they are functionally identical, but there is an argument to be made for style.
We could change the entire file around to use this format --- it might save a handful of lines --- but it's something that should be done in a python-wide PR.
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.
We could change the entire file around to use this format --- it might save a handful of lines --- but it's something that should be done in a python-wide PR.
Agree, let's leave it like it is now.
c26d30d
to
f87f890
Compare
I strongly disagree. |
True. The final point is that everything should be eventually selected by some |
|
Perfect, then it's all good. |
f87f890
to
a617dda
Compare
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.
All good @andreittr, I'll add the tag after all numpy
and libgeos
dependencies are merged.
@andreittr you can rebase this now, #15 is merged 🎉 |
Done |
This change only adds the necessary module registrations and Kconfig options. Shapely itself is provided by its own unikraft port. Signed-off-by: Andrei Tatar <andrei@unikraft.io>
a617dda
to
517cf61
Compare
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.
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com
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.
All good with me now, good job!
Reviewed-by: Maria Sfiraiala maria.sfiraiala@gmail.com
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.
Approved-by: Razvan Deaconescu razvand@unikraft.io
This change set adds support for the shapely extension in the main Python build.
Depends on Python 3.10 and Numpy:
and all their dependencies. Contains all commits from #16.
Commit c26d30d adds shapely support. (Will rebase once numpy is mainlined)
The Shapely microlibrary is a separate PR: