diff --git a/Formula/a/awscli.rb b/Formula/a/awscli.rb index fcf03f83d337e..64033fb15425e 100644 --- a/Formula/a/awscli.rb +++ b/Formula/a/awscli.rb @@ -121,9 +121,7 @@ def install ENV.append_to_cflags "-Wno-incompatible-function-pointer-types" if DevelopmentTools.clang_build_version >= 1500 venv = virtualenv_create(libexec, python3, system_site_packages: false) - venv.pip_install resources.reject { |r| r.name == "awscrt" } - # The `awscrt` resource requires `setuptools` & `wheel`, so they must be installed first - venv.pip_install resource("awscrt") + venv.pip_install resources venv.pip_install_and_link buildpath, build_isolation: false pkgshare.install "awscli/examples" @@ -151,6 +149,6 @@ def caveats test do assert_match "topics", shell_output("#{bin}/aws help") site_packages = libexec/Language::Python.site_packages(python3) - assert_includes Dir[site_packages/"awscli/data/*"], "#{site_packages}/awscli/data/ac.index" + assert_includes site_packages.glob("awscli/data/*"), site_packages/"awscli/data/ac.index" end end