Opened 7 years ago

Closed 5 years ago

#53981 closed enhancement (worksforme)

Opencv: Subport for python 2.7

Reported by: JacksonIsaac (Jackson Isaac) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: petrrr
Port: opencv

Description

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

Change History (3)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: JacksonIsaac removed

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.
Version 0, edited 7 years ago by mf2k (Frank Schima) (next)

comment:2 Changed 7 years ago by petrrr

Cc: petrrr added

comment:3 Changed 5 years ago by JacksonIsaac (Jackson Isaac)

Resolution: worksforme
Status: newclosed

Closing this since python2.7 is anyway going to be deprecated soon.

Also, I don't use py2.7 anymore so doesn't make sense for me to keep this ticket open.

Note: See TracTickets for help on using tickets.