Orange Forum • View topic - making a proper debian/ubuntu package for orange

making a proper debian/ubuntu package for orange

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

making a proper debian/ubuntu package for orange

Postby Mark » Mon Dec 13, 2010 11:54

/usr/bin/orange in the debian package should look more like the following -- I needed to change it this way for my package to run under Ubuntu 10.04:

Code: Select all
#!/bin/bash
export PYTHONPATH=/usr/lib/pymodules/python2.6/orange
exec -a "$0" /usr/bin/python /usr/lib/pymodules/python2.6/orange/OrangeCanvas/orngCanvas.pyw "$@"


The proper location (with Ubuntu) for the package is not site-packages, but /usr/share/pyshared, and then symlinks are created to /usr/lib/pymodules -- this is handled via the python-support package available on debian/ubuntu.

Probably hardcoding PYTHONPATH above isn't ideal, but it's a workaround to the present packaging problems orange has.

Postby Guest » Tue Dec 28, 2010 8:34

Thanks.The post is very useful~


Return to Bugs