Eliminating X dependency from python
Rainer Müller
raimue at macports.org
Tue Jul 6 06:21:46 PDT 2010
On 2010-07-02 04:16 , Michael_google gmail_Gersten wrote:
> I have denyhosts installed. That's a nice python package.
>
> It wants python (obviously).
>
> But installing denyhosts installs python default, which installs tk by
> default, which in turn brings in (just about) the entire X package.
>
> So, two questions:
> 1. Why is the default for a scripting language to bring in the entire
> gui system? Why isn't that a variant?
http://trac.macports.org/wiki/FAQ#pydeps
> 2. What's the proper way to check for surprises like that beforehand?
> (I'm finding out by repeating port echo leaves, port info leaves, sudo
> port uninstall leaves, and making notes of what to reinstall later.)
"sudo port -y install" will do a dry-run and show what will be installed.
Also possible:
"port echo rdepof:python26 and not installed" will list ports that are
not already installed.
> 3. For python, how do I specify "Give me command line scripting, no gui"?
Use the +no_tkinter variant, "sudo port install python26 +no_tkinter".
Rainer
More information about the macports-users
mailing list