[ELE-830] Avoid writing to the Python package installation directory.
Is your feature request related to a problem? Please describe.
Users often build a filesystem image that has the elementary-data Python package installed,
and then mark their Python packages directory (site-packages) as read-only.
This is problematic because at the moment running edr can do things that attempt to write to its installation directory.
That is:
- It runs
dbt depsagainst the internal dbt project to download the Elementary dbt package. - It runs
dbtwhich creates atargetdirectory within the internal dbt project. - (Now solved) - It used to create
logs/dbt.logbut is now usingedr_targetinstead.
Describe the solution you'd like
For (1), have the dbt package already included within the Python package and remove the download logic.
This will increase the Python package size so not entire sure that's the ideal solution.
For (2), Do the same thing as with the dbt.log by defining DBT_TARGET_PATH here.
Additional context This would also solve the issue of https://github.com/elementary-data/elementary/issues/584.