setting /tmp/tmp4jbtnk_g/wheel/platlib/cppcheck/data/share/Cppcheck as FILESDIR seems unfortunate. Can't you skip the FILESDIR and put the cppcheck binary and configuration files together?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In order to use cppcheck with pre-commit, I try to package cppcheck as a python wheel. Attachment is code. However:
Can we
cppcheck --cfg=XXXX
to change search path?setting /tmp/tmp4jbtnk_g/wheel/platlib/cppcheck/data/share/Cppcheck as FILESDIR seems unfortunate. Can't you skip the FILESDIR and put the cppcheck binary and configuration files together?
How to skip the FILESDIR?
Do not use -DFILESDIR when you compile cppcheck