diff --git a/bin/peru b/bin/peru deleted file mode 100755 index cb9299f..0000000 --- a/bin/peru +++ /dev/null @@ -1,11 +0,0 @@ -#! /usr/bin/env python3 - -import sys - -if sys.version_info.major < 3 or sys.version_info.minor < 3: - print("Peru requires Python 3.3 or newer.") - sys.exit(1) - -from peru import main - -main.main() diff --git a/peru.sh b/peru.sh index c6d133b..c6c6b14 100755 --- a/peru.sh +++ b/peru.sh @@ -27,4 +27,4 @@ repo_root=$(dirname $(realpath $BASH_SOURCE)) source "$repo_root/scripts/env.sh" -"$repo_root/bin/peru" "$@" +python3 -c "import peru.main; peru.main.main()" "$@" diff --git a/setup.py b/setup.py index 682b4af..e74e372 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,11 @@ setuptools.setup( license='MIT', packages=['peru'], package_data={'peru': resources_paths}, - scripts=['bin/peru'], + entry_points={ + 'console_scripts': [ + 'peru=peru.main:main', + ] + }, install_requires=[ 'docopt', 'PyYAML',