From ff249734f360a5a1c429539bc138fec3a6827d93 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 27 Feb 2023 16:48:29 -0500 Subject: [PATCH] +aws.amazon.com/cli (#79) --- projects/aws.amazon.com/cli/package.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/aws.amazon.com/cli/package.yml diff --git a/projects/aws.amazon.com/cli/package.yml b/projects/aws.amazon.com/cli/package.yml new file mode 100644 index 00000000..7bf6756e --- /dev/null +++ b/projects/aws.amazon.com/cli/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/aws/aws-cli/archive/{{version}}.tar.gz + strip-components: 1 + +versions: + github: aws/aws-cli/tags + +dependencies: + python.org: '>=3.7' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + rust-lang.org: '>=1.48.0' # needed for cryptography + rust-lang.org/cargo: '*' + script: | + python-venv.sh {{prefix}}/bin/aws + cd "{{prefix}}"/venv/lib/python{{deps.python.org.version.marketing}}/site-packages + # oddly the srcs import both names for this and we have to symlink or it doesn't work + ln -s awscrt _awscrt + env: + # python includes are subdirectoried under the version + # frankly, python's versioning system causes a lot of + # issues for us despite its similarities to our own, + # due to versioning at the end of the path tree, + # instead of the beginning. + CPATH: $CPATH:{{deps.python.org.prefix}}/include/python{{deps.python.org.version.marketing}} + +test: | + # Pretty much anything else appears to require AWS credentials + aws --version + +provides: + - bin/aws