I made a PKGBUILD for a python package, and everything is working fine, except for one thing that breaks: the package needs to generate some assets and puts them in its source directory structure, something like this:
/usr/lib/python3.10/site-packages/mypackage/some/path/to/assets
This needs to happen whenever the application is launched, because the assets can be expanded/modified later on. However, this is (rightfully) failing with a permission error, because the app itself does not have write permissions in that directory.
Is there a way around this that does not involve changes upstream? If not, what's my goal with potential upstream changes? Writing in /usr/share/package? /usr/local/share? Something else?