Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaroudn for default instalation from PyPI
Running list-rulesets will fail for pacakge installed from PyPI [root@b04c448e74fc /]# dnf install -y -e0 -d0 podman python3-pip //snip [root@b04c448e74fc /]# pip install colin==0.5.2 //snip [root@b04c448e74fc /]# python3 -c 'import colin; print(colin.__path__)' ['/usr/local/lib/python3.9/site-packages/colin'] [root@b04c448e74fc /]# ls -l /usr/local/share/colin/rulesets/ total 8 -rw-r--r--. 1 root root 582 Mar 1 16:52 default.json -rw-r--r--. 1 root root 1611 Mar 1 16:52 fedora.json [root@b04c448e74fc /]# /usr/local/bin/colin list-rulesets Ruleset directory cannot be found. An error occurred: ColinRulesetException('Ruleset directory cannot be found.') Error: Ruleset directory cannot be found. There does not seems to be any trivial and reliable way how to identify where `data_files` are installed by setuptools. There are way how to get pkg_data but that is something different. There fore I decided to special case /usr/local
- Loading branch information