remove old references to cmi
build: move generation of env file into common.py
implement the setup.* files for non-merged devel