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
-
At present, having
firedrake
,pyop2
,tsfc
etc as top-level directories in the Firedrake repository means that when we run operations likemake check
from the root directory we import thefiredrake
directory, 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 check
from the repository root . This produced the error:This is because Python is looking inside the
pyop2
directory for the compiled extensions instead of inside$VIRTUAL_ENV/lib/python*/site-packages/pyop2
.Switching to a
src
layout, where the Python packages are put inside of a top-levelsrc
directory would avoid this confusing error.Useful sources:
Beta Was this translation helpful? Give feedback.
All reactions