awscli-local
awscli-local copied to clipboard
Use console_scripts instead of scripts
uv seems to not be able to run scripts installed via scripts= in setup.py on Windows; it doesn't seem to accept the provided .bat script (see https://github.com/astral-sh/uv/issues/8888)
This change bypasses the issue by installing awslocal as a console_script, which produces an exe when installed on Windows.
You can verify that python3 -m venv venv; venv\Scripts\activate.bat; pip install . produces venv\Scripts\awslocal.exe when ran on Windows with my changes.
This also fixes the issue with uv: uv tool install . installs awslocal.exe in the binaries directory.
This still does not fix the issue in #84, so the program still segfaults, but at least it's installed properly.