-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected] does not disable tkinter on gnu+linux #202570
Comments
Does |
hunh? 🤨 |
Should work. Alternatively/Additionally could always set $ pkg-config tcl --path
/home/linuxbrew/.linuxbrew/lib/pkgconfig/tcl.pc
$ PKG_CONFIG_LIBDIR= pkg-config tcl --path
$ PKG_CONFIG_LIBDIR= PKG_CONFIG_PATH=/home/linuxbrew/.linuxbrew/opt/tcl-tk/lib/pkgconfig pkg-config tcl --path
/home/linuxbrew/.linuxbrew/opt/tcl-tk/lib/pkgconfig/tcl.pc We do already set this environment variable on macOS, which may be why we experience less opportunistic linkage compared to Linux. |
Added this to Note that some formulae may need to be rebuilt to drop opportunistic linkage (e.g. saw this for |
Adding |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
with my homebrew install on arch linux i run homebrew in a non standard prefix ie.
~/homebrew
that said, i believe this issue could effect standard prefix installations of homebrew as well.What happened (include all command output)?
running
brew install [email protected] -v -s
will fail.i think the homebrew ci is able to produce a working bottle because it sets up a fresh homebrew installation to where tcl-tk is not installed in the environment. that said if someone has explicitly installed tcl-tk and then installs [email protected] from source the configure script for python will pick up on the tcl-tk install in the path and attempt to configure [email protected] with tcl-tk support thus running into the tkinter build / linking error.
in the [email protected] formula file there is the below snippet,
homebrew-core/Formula/p/[email protected]
Lines 189 to 193 in a82002a
that snippet essentially does nothing. one can verify by running the below command,
run,
open up the
config.log
do a search fortkinter
and notice the values set within theconfig.log
i ended up using the same technique that macports uses for disabling tcl-tk ie. seen below,
https://github.com/Homebrew/homebrew-core/blob/5024d5b785db171580f43ce223e0eb6a3b6a0c45/patches/python-3.12-disable-tkinter.patch
What did you expect to happen?
a working python installation, ie. a configure build link of python without failure.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: