Opened 11 years ago

Last modified 7 months ago

#39671 closed enhancement

orfeotoolbox : update python variant — at Initial Version

Reported by: julien.malik@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: orfeotoolbox

Description

The python variant compiles and install a new module called "otbApplication".

The module "otbApplication" loads plugins currently located in /usr/lib/otb/applications. They are named 'otbapp_Something.dylib'.

For them to be properly detected and loaded, the env var ITK_AUTOLOAD_PATH must be set to /usr/lib/otb/applications before loading python. Not convenient at all. To ease the process, I updated the debian package recently to :

  • install in a subdir of "site-package" with OTB_INSTALL_PYTHON_DIR, and not in site-package directly
  • create an init.py at install time which import the right thing and then set up the env var.

Something similar shall be done in the Portfile.

The init.py file content can be found here : http://hg.orfeo-toolbox.org/OTB-DevUtils/file/tip/Packaging/ubuntu/OTB/debian/python-otb.postinst

Change History (0)

Note: See TracTickets for help on using tickets.