py-cryptography@35: tell cargo to use cli git, not cargo internal git… (#30307)
This commit is contained in:
parent
f30b79b2c5
commit
d5e1fa5771
@ -47,3 +47,13 @@ class PyCryptography(PythonPackage):
|
||||
depends_on('py-ipaddress', type=('build', 'run'), when='^python@:3.3')
|
||||
depends_on('openssl@:1.0', when='@:1.8.1')
|
||||
depends_on('openssl')
|
||||
|
||||
# To fix https://github.com/spack/spack/issues/29669
|
||||
# https://community.home-assistant.io/t/error-failed-building-wheel-for-cryptography/352020/14
|
||||
# We use CLI git instead of Cargo's internal git library
|
||||
# See reference: https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
|
||||
depends_on('git', type='build', when='@35:')
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
if self.spec.satisfies('@35:'):
|
||||
env.set('CARGO_NET_GIT_FETCH_WITH_CLI', 'true')
|
||||
|
Loading…
Reference in New Issue
Block a user