Skip to content

Commit c2033aa

Browse files
Install libcrypt-dev on Ubuntu 26.04 for Python 3.10-3.12 builds (#398)
* Install libcrypt-dev on Ubuntu 26.04 for Python 3.10-3.12 builds * update condition
1 parent 244d5fb commit c2033aa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

builders/ubuntu-python-builder.psm1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,12 @@ class UbuntuPythonBuilder : NixPythonBuilder {
9090

9191
### On Ubuntu-1804, libgdbm-compat-dev has older modules that are no longer in libgdbm-dev
9292
Execute-Command -Command "sudo apt install -y libgdbm-compat-dev"
93+
94+
### Python 3.10-3.12 need libcrypt-dev (crypt.h) which is not installed by default on Ubuntu 26.04
95+
if ([semver]"$($this.Version.Major).$($this.Version.Minor)" -ge [semver]"3.10" -and
96+
[semver]"$($this.Version.Major).$($this.Version.Minor)" -lt [semver]"3.13" -and
97+
$this.Platform -match "26\.04") {
98+
Execute-Command -Command "sudo apt install -y libcrypt-dev"
99+
}
93100
}
94101
}

0 commit comments

Comments
 (0)