Find out, that the problem is in the latest version (20) of the package. Compared the content of those two packages, the setup.py is in both:
[centos@ip-10-0-1-51 ~]$ find cm_api-20.0.0 | grep setup
cm_api-20.0.0/setup.cfg
cm_api-20.0.0/setup.py
[centos@ip-10-0-1-51 ~]$ find cm_api-19.0.0 | grep setup
cm_api-19.0.0/setup.cfg
cm_api-19.0.0/setup.py
But the new version of setup.py tries to execute non-existing python/setup.py
# that "setup.py" is at the root.
import os.path
import imp
base_dir = os.path.split(os.path.abspath(__file__))[0]
setup = os.path.join(base_dir, "python", "setup.py")
fobj = open(setup)
suffixes = [x for x in imp.get_suffixes() if x[0] == ".py"]
imp.load_module("__setup2__", fobj, setup, suffixes[0])
Workaround solution for me is:
sudo pip install "cm_api<20"