Firedrake should switch to a src layout
#4049
connorjward
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Assuming I understand the source of the issue correctly, you may want to have a look at https://docs.python.org/3/using/cmdline.html#cmdoption-P , which should at least mitigate the issue on the current layout. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At present, having
firedrake,pyop2,tsfcetc as top-level directories in the Firedrake repository means that when we run operations likemake checkfrom the root directory we import thefiredrakedirectory, rather than an installed package. This works for editable installations but not for non-editable ones.I encountered this in my latest PR. I installed Firedrake not in editable mode and then ran
make checkfrom the repository root . This produced the error:This is because Python is looking inside the
pyop2directory for the compiled extensions instead of inside$VIRTUAL_ENV/lib/python*/site-packages/pyop2.Switching to a
srclayout, where the Python packages are put inside of a top-levelsrcdirectory would avoid this confusing error.Useful sources:
Beta Was this translation helpful? Give feedback.
All reactions