@@ -37,16 +37,9 @@ class UbuntuPythonBuilder : NixPythonBuilder {
37
37
$configureString += " --enable-shared"
38
38
$configureString += " --enable-optimizations"
39
39
40
- # ## Compile with ucs4 for Python 2.x. On 3.x, ucs4 is enabled by default
41
- if ($this.Version -lt " 3.0.0" ) {
42
- $configureString += " --enable-unicode=ucs4"
43
- }
44
-
45
- # ## Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
40
+ # ## Compile with support of loadable sqlite extensions.
46
41
# ## Link to documentation (https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.enable_load_extension)
47
- if ($this.Version -ge " 3.2.0" ) {
48
- $configureString += " --enable-loadable-sqlite-extensions"
49
- }
42
+ $configureString += " --enable-loadable-sqlite-extensions"
50
43
51
44
Write-Host " The passed configure options are: "
52
45
Write-Host $configureString
@@ -60,17 +53,13 @@ class UbuntuPythonBuilder : NixPythonBuilder {
60
53
Prepare system environment by installing dependencies and required packages.
61
54
#>
62
55
63
- if (( $this.Version -gt " 3.0.0 " ) -and ( $this .Version - lt " 3.5.3" ) ) {
64
- Write-Host " Python3 versions lower than 3.5.3 are not supported"
56
+ if ($this.Version -lt " 3.5.3" ) {
57
+ Write-Host " Python versions lower than 3.5.3 are not supported"
65
58
exit 1
66
59
}
67
60
68
61
# ## Compile with tkinter support
69
- if ($this.Version -gt " 3.0.0" ) {
70
- $tkinterInstallString = " sudo apt-get install -y --allow-downgrades python3-tk tk-dev"
71
- } else {
72
- $tkinterInstallString = " sudo apt install -y python-tk tk-dev"
73
- }
62
+ $tkinterInstallString = " sudo apt-get install -y --allow-downgrades python3-tk tk-dev"
74
63
75
64
Execute- Command - Command " sudo apt-get update"
76
65
Execute- Command - Command $tkinterInstallString
@@ -85,7 +74,8 @@ class UbuntuPythonBuilder : NixPythonBuilder {
85
74
" libsqlite3-dev" ,
86
75
" libncursesw5-dev" ,
87
76
" libreadline-dev" ,
88
- " libgdbm-dev"
77
+ " libgdbm-dev" ,
78
+ " liblzma-dev"
89
79
) | ForEach-Object {
90
80
Execute- Command - Command " sudo apt install -y $_ "
91
81
}
0 commit comments