Как постараться не устанавливать ненужные зависимости с MacPorts?

Я использую Платформу Зенда, которая в значительной степени определяет расположение папки и ООП (парадигма MVC). Для общих задач такой что касается разбиения на страницы в качестве примера я использую Zend_Paginator (моя образцовая реализация классов Zend_Paginator_Adapter_Interface) для проверки, которую я использую Zend_Validate классы и т.д., Благодаря которым я могу полностью сконцентрироваться на бизнес-логике вместо изобретения велосипед.

6
задан stefanB 2 October 2009 в 12:28
поделиться

1 ответ

Looking at the port file for postgresql84, the +python variant for it actually means python2.5. Most of the dependencies you find annoying are probably being brought in by the python tkinter module dependency on Tk which by default builds an X11 version of Tk rather than the +quartz variant. You can change that by specifying that variant and reinstalling. The easy way to deal with variants is to add the options you normally want to use as defaults to those in /opt/local/etc/macports/variants.conf.

Unfortunately, at the moment, the tk +quartz variant build is broken on Snow Leopard. So, if you are not planning to use tkinter (or IDLE) with the MacPorts python2.5, you can force the removal after the fact of the unwanted modules:

port installed
port -f uninstall tk Xft2 xorg-libX11 ...

You might want to first do a dry-run by adding the -y option to see exactly what the effects of the uninstall will be.

Note, the python26 port has a handy +no_tkinter variant which could be useful once the portgresql ports are upgraded to python2.6.

8
ответ дан 8 December 2019 в 17:23
поделиться
Другие вопросы по тегам:

Похожие вопросы: