Skip to content Skip to sidebar Skip to footer

Pkg_resources.distributionnotfound When Using A Module Installed From A Bdist_rpm

I am trying to create a rpm of a CLI tool I have built. The rpm is being created and is installing without errors. However, when I try to use the CLI I get the following exception:

Solution 1:

I eventually just specified a custom install script using the --install-script flag that used the prefix option for setup.py install

Contents of install-script: python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --prefix /usr

Post a Comment for "Pkg_resources.distributionnotfound When Using A Module Installed From A Bdist_rpm"