[MacPorts] #39671: orfeotoolbox : update python variant
#39671: orfeotoolbox : update python variant ----------------------------+-------------------------------- Reporter: julien.malik@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: orfeotoolbox ----------------------------+-------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/39671> MacPorts <http://www.macports.org/> Ports system for OS X
#39671: orfeotoolbox : update python variant -----------------------------+------------------------ Reporter: julien.malik@… | Owner: stromnov@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: orfeotoolbox | -----------------------------+------------------------ Changes (by larryv@…): * owner: macports-tickets@… => stromnov@… * version: 2.1.3 => Old 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
New 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 -- -- Ticket URL: <https://trac.macports.org/ticket/39671#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39671: orfeotoolbox : update python variant -----------------------------+------------------------ Reporter: julien.malik@… | Owner: stromnov@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: orfeotoolbox | -----------------------------+------------------------ Comment (by julien.malik@…): To test the fix, this : python -c "import otbApplication;print otbApplication.Registry.GetAvailableApplications()" should output a non-empty list of strings. -- Ticket URL: <https://trac.macports.org/ticket/39671#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts