Problem with PYTHONPATH while running tests

Simon Newton lists at nomis52.net
Sat Nov 5 11:39:08 PDT 2011


Hi,

I have a port, with a python27 variant that depends on
protobuf-python27. I've noticed however that when running the test
phase, PYTHONPATH doesn't include the install location of
protobuf-python27
(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
on my system) so the tests fail.

I believe I need to use

test.env-append PYTHONPATH=${PATH_TO_DEP_INSTALL_LOCATION}

but I don't know how to get the install location of a dependency from
within a port file.

Any hints?

Thanks,

Simon


More information about the macports-dev mailing list