Quantcast

[MacPorts] #53981: Opencv: Subport for python 2.7

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #53981: Opencv: Subport for python 2.7

MacPorts
#53981: Opencv: Subport for python 2.7
--------------------------+----------------------
 Reporter:  JacksonIsaac  |      Owner:  stromnov
     Type:  enhancement   |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:                |       Port:  opencv
--------------------------+----------------------
 I was trying to update caffe port which depends on opencv but need to
 install it with python27 variant. I guess the issue was python 2.7 was
 unable to use the libopencv_imgcodecs.3.2.0.dylib provided by opencv as
 it was built against 3.x by default.

 It is not possible to have a dependency with variant. It would be
 helpful if we can have subport for opencv so it support python 2.x as
 well as 3.x.

 Blocks #53980

--
Ticket URL: <https://trac.macports.org/ticket/53981>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53981: Opencv: Subport for python 2.7

MacPorts
#53981: Opencv: Subport for python 2.7
---------------------------+----------------------
  Reporter:  JacksonIsaac  |      Owner:  stromnov
      Type:  enhancement   |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  opencv        |
---------------------------+----------------------
Changes (by mf2k):

 * cc: JacksonIsaac (removed)


Comment:

 As reporter, you do not need to Cc yourself.

 Unless I am missing something, there is already a {{{+python27}}} variant
 for opencv. And it does not apparently conflict with the {{{+python35}}}
 variant.

 {{{
 $ port variants opencv
 opencv has the variants:
    avx: Enable AVX (and SSE4*) support
      * conflicts with avx2
    avx2: Enable AVX, AVX2 (and SSE4*) support
      * conflicts with avx
    contrib: Build OpenCV with extra modules.
    dc1394: Use libdc1394 for FireWire camera. Breaks compatibility with
 Apple iSight FireWire camera.
    debug: Enable debug binaries
    eigen: Enable eigen support.
    gdal: Include GDAL support.
    java: Add Java bindings.
    opencl: Enable OpenCL support.
    openni: Enable OpenNI support.
    python27: Add Python 2.7 bindings.
    python34: Add bindings for Python 3.4
      * conflicts with python35
 (+)python35: Add bindings for Python 3.5
      * conflicts with python34
    qt4: Build with Qt4 Backend support.
      * conflicts with qt5
    qt5: Build with Qt5 Backend support.
      * conflicts with qt4
    tbb: Use Intel TBB.
    universal: Build for multiple architectures
    vtk: Include VTK support.
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53981#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...