Open brenthuisman opened 2 weeks ago
Reformatting the search path:
/opt/homebrew_x86_64/Cellar/tcl-tk/8.6.14/lib/tcl8.6 \
/Users/brent/Downloads/pypy-c-jit-185689-a624ac9d22a2-macos_x86_64/lib/tcl8.6 \
/Users/brent/Downloads/lib/tcl8.6 \
/Users/brent/Downloads/pypy-c-jit-185689-a624ac9d22a2-macos_x86_64/library \
/Users/brent/Downloads/library \
/Users/brent/Downloads/tcl8.6.14/library \
/Users/brent/tcl8.6.14/library
On the linux builds, init.tcl
is under the top-level lib/tcl8.?
, that directory and its contents is not being shipped. I will look into this further.
Ahh. This is wrong for macOS, the tcl libraries on the buildbot are not in '/usr' https://github.com/pypy/pypy/blob/7e1daef72877773fa4fc25115f5d8199ef274284/pypy/tool/release/make_portable.py#L137-L140
Done in 696ddf3
Nearly there:
Traceback (most recent call last):
File "/Users/brent/Downloads/tktest.py", line 6, in <module>
root = tk.Tk()
^^^^^^^
File "/Users/brent/Downloads/pypy-c-jit-185700-f6179b5ae4d3-macos_x86_64/lib/pypy3.10/tkinter/__init__.py", line 2306, in __init__
self._loadtk()
File "/Users/brent/Downloads/pypy-c-jit-185700-f6179b5ae4d3-macos_x86_64/lib/pypy3.10/tkinter/__init__.py", line 2322, in _loadtk
raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
8.5(.9) is what MacOS 14 ships with, so it looks like it might be first in path or somesuch.
Do you have some environment variable like TK_LIBRARY
, TKPATH
, TCL_LIBRARY
or so set?
Nope, those are all unset.
Recently bundling of tk was improved: https://github.com/pypy/pypy/commit/99cdfd711d2d7b3cc962874872644384c1551136
I can see
libtk8.6.dylib
now, but at least one more file seems to be needed:Not sure if that's the only one.