move cmakelists.txt generation and pythonpath setting into init build.