On 17/10/09 02:04, ~suv wrote:
On 15/10/09 18:05, Wolf Drechsel wrote:
So I tried to run the script with the -py option, but cannot find out for which python components I do have to look. Nor do I know whether I do have enough python installed; a "sudo port installed" shows:
/py26-libxml2 @2.6.21_0 (active)/ /python26 @2.6.2_4+darwin (active)/
I guess the python26 thing is it - but how will the script find the necessary components?
I never managed to bundle the app without feeding the script a path to python modules and I only succeeded with the site-packages from modevia (mentioned in previous messge). I didn't bother again because once you have the app built you can use the python binary and modules installed in MacPorts with Inkscape.app (you might have to adjust $PATH and $PYTHONPATH in the launch script 'Contents/Resources/bin/inkscape' but AFAIU it's already set up to include the default MacPorts path '/opt/local/bin'). You can test it by renaming the 'Contents/Resources/python' folder - Inkscape then should fall back to the MacPorts installed python+modules (in '/opt/local') or - as last resort - to any modules added to the system-installed Python Framework)
these ports I have installed for Python 2.6:
python26 @2.6.2_4 (active) python_select @0.2.1_0+darwin_9 (active)
py26-libxml2 @2.6.21_0 (active) py26-lxml @2.2.2_0 (active) py26-nose @0.11.1_0 (active) py26-numeric @24.2_0+macosx (active) py26-numpy @1.3.0_0 (active) py26-pil @1.1.6_0 (active) py26-reportlab @2.3_0 (active) py26-setuptools @0.6c9_0 (active)
(for Inkscape you definitely need lxml and numpy, pil and reportlab are needed for UniConverter, the others - libxml2, nose, numeric etc. came as dependencies ;-)
hth, ~suv