File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ class macOSPythonBuilder : NixPythonBuilder {
59
59
$env: CFLAGS = " -I/usr/local/opt/[email protected] /include -I/usr/local/opt/zlib/include"
60
60
} else {
61
61
$configureString += " --with-openssl=/usr/local/opt/[email protected] "
62
+ if ($this.Version -gt " 3.7.12" ) {
63
+ $configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
64
+ }
62
65
}
63
66
64
67
# ## Compile with support of loadable sqlite extensions. Unavailable for Python 2.*
Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ Describe "Tests" {
49
49
" python ./sources/simple-test.py" | Should - ReturnZeroExitCode
50
50
}
51
51
52
+ # linux has no display name and no $DISPLAY environment variable - skip tk test
53
+ if (-not (($Platform -match " ubuntu" ) -or ($Platform -match " linux" ))) {
54
+ It " Check if tcl/tk has the same headed and library versions" {
55
+ " python ./sources/tcltk.py" | Should - ReturnZeroExitCode
56
+ }
57
+ }
58
+
52
59
if (($Version -ge " 3.2.0" ) -and -not ([semver ]" $ ( $Version.Major ) .$ ( $Version.Minor ) " -eq [semver ]" 3.11" -and $Version.PreReleaseLabel )) {
53
60
It " Check if sqlite3 module is installed" {
54
61
" python ./sources/python-sqlite3.py" | Should - ReturnZeroExitCode
Original file line number Diff line number Diff line change
1
+ import tkinter
2
+ import _tkinter
3
+
4
+ header = _tkinter .TK_VERSION
5
+ lib = tkinter .Tk ().getvar ('tk_version' )
6
+
7
+ if lib != header :
8
+ print ('header version=' + header )
9
+ print ('lib version=' + lib )
10
+ exit (1 )
You can’t perform that action at this time.
0 commit comments