allow installation as console script
Merge branch 'install-as-script'