にある独自のQt4ライブラリを使用してPythonモジュールをコンパイルしました~/opt/qt-4.6.0/
が、そのモジュールをインポートしようとすると、ロードされるダイナミックライブラリはMacPortsQt4インストールからのものです。
$ /opt/local/bin/python2.6
>>> import vtk
objc[58041]: Class QMacSoundDelegate is implemented in both /Users/luis/opt/qt-4.6.0/lib/QtGui.framework/Versions/4/QtGui and /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui. Using implementation from /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui.
objc[58045]: Class QCocoaColorPanelDelegate is implemented in both /Users/luis/opt/qt-4.6.0/lib/QtGui.framework/Versions/4/QtGui and /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui. Using implementation from /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui.
[... more output like above ...]
>>>
私の~/opt/qt-4.6.0/lib/
ディレクトリにあるフレームワークをロードするようにPython(これもMacPortsからインストールされています)に指示する方法はありますか?変更する環境変数がわかりません。