Skip to content

Commit

Permalink
py-pyopenssl: use a fallback on legacy systems without Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 6, 2024
1 parent 1e33f36 commit f73b416
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/py-openssl/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ checksums rmd160 d9a08c0c1d529ac98e5ac42e8b5d4ed64c3edbb5 \

python.versions 27 37 38 39 310 311 312

# Match py-cryptography setting here:
set openssl_darwin_min_ver 13

if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools

Expand All @@ -45,7 +48,9 @@ if {${name} ne ${subport}} {
${destroot}${prefix}/share/doc/${subport}
}

if {${python.version} == 27} {
if {${python.version} == 27 \
|| ${os.platform} eq "darwin" && ${os.major} < ${openssl_darwin_min_ver}} {
# TODO: see if we can upgrade this, reverting commits which rely on Rust.
github.setup pyca pyopenssl 21.0.0
checksums rmd160 5806276d4716458a77c32f91a0c7f8ee30fe1dfb \
sha256 5d1d93fb3d55be740e444b991bccc5db26b1cfd3666cbbd8b6d01dc7a6cc5430 \
Expand Down

0 comments on commit f73b416

Please sign in to comment.