Bug fixes in py-awscrt to fix build errors reported in #40386 (#40469)

* Bug fix in var/spack/repos/builtin/packages/py-awscrt/package.py: on Linux, tell aws-crt-python to use libcrypto from spack (openssl)

* Bug fix in var/spack/repos/builtin/packages/py-awscrt/package.py: add missing build dependencies cmake (for all), openssl (for linux)

* Update var/spack/repos/builtin/packages/py-awscrt/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Dom Heinzeller 2023-10-14 15:02:41 -06:00 committed by GitHub
parent 149d1946ee
commit 26e063177d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,4 +16,11 @@ class PyAwscrt(PythonPackage):
version("0.16.16", sha256="13075df2c1d7942fe22327b6483274517ee0f6ae765c4e6b6ae9ef5b4c43a827")
depends_on("cmake@3.1:", type=("build"))
depends_on("openssl", type=("build"), when="platform=linux")
depends_on("py-setuptools", type=("build"))
# On Linux, tell aws-crt-python to use libcrypto from spack (openssl)
def setup_build_environment(self, env):
with when("platform=linux"):
env.set("AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO", 1)