From 7374d5db8dfd44b03e4366afab9c972437b5afa1 Mon Sep 17 00:00:00 2001 From: Garrett Holmstrom Date: Thu, 19 Dec 2024 17:16:59 -0800 Subject: [PATCH] Add a console_scripts entry point for aws In comparison to `scripts`, setuptools's `console_scripts` mechanism is a more portable way to register CLI executables which allows setuptools to generate the executable stub script in a manner appropriate for the platform in question. It also integrates well with bazel. In this patch we add one for the `aws` command. Fixes #5063 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 6e2085e60e2c..905b062046af 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ def find_version(*file_paths): scripts=['bin/aws', 'bin/aws.cmd', 'bin/aws_completer', 'bin/aws_zsh_completer.sh', 'bin/aws_bash_completer'], + entry_points={'console_scripts': ['aws=awscli.clidriver:main']}, packages=find_packages(exclude=['tests*']), include_package_data=True, install_requires=install_requires,