PDA

View Full Version : Problem with a Python module


rghq
October 5th, 2009, 05:12
Hello,

I'm about porting a small Python script that required the m2crypto module in order to run.
Setting:


RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}m2crypto:security/py-m2crypto


Won't recognize it as installed and the build run fails reporting m2crypto is already installed.
Since that port (m2crypto) installs one file that differs depending from the installed FreeBSD and Python version - another way to work-around this issue somehow ?

Thanks in advance

john_doe
October 5th, 2009, 15:36
Can't you use depends from an existing port? For example, net-im/py-pyxmpp usesRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto

rghq
October 5th, 2009, 18:17
Yup - tried this already still the result remains the same.

Carpetsmoker
October 10th, 2009, 01:58
Actually, that line works fine for me.
It doesn't work without the version number, not sure why. I can't find anything obvious in /ports/Mk/ right now ...