-
Notifications
You must be signed in to change notification settings - Fork 22
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
Build the python poc #239
base: moritz/pyapi
Are you sure you want to change the base?
Build the python poc #239
Conversation
…non-editable mode. Command for build: * editable: ``` conan install conanfile.py cloe/0.22.0-develop@cloe/develop --install-folder="build" --build=outdated && \ cmake --preset=debug && \ cmake --build --preset=debug ``` * non-editable: `conan create . cloe/develop`
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.
Let's talk because I have some questions.
from ._cloe_bindings import CallbackResult | ||
from _cloe_bindings import CallbackResult |
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.
Is this necessary / safe?
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.
Above you're still importing from ._runner
, implying that mechanism still works.
So what is removing relative import gaining here?
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.
In editable mode the _cloe_bindings.so file is not next to the python file so relative import won't work.
Python finds it through the PYTHONPATH env variable.
Allow the developer to build the conan project in editable and non-editable mode.