class PythonProject(ProjectType):
    build_cmd = 'python setup.py develop --user'
markers = ['setup.py']


class AutoconfProject(ProjectType):
    build_cmd = './configure && make -j3'
markers = ['configure.in', 'configure.ac', 'makefile.am']


class MakefileOnly(ProjectType):
    build_cmd = 'make'
markers = ['Makefile']
Фабричный метод в питоне