How to Git Clone Subrepo for Build (opencv-python)

Steven Smith steve.t.smith at gmail.com
Tue Dec 10 21:35:16 UTC 2019


The opencv-python package needs to clone a subrepo of opencv4 as part of the build. See:

https://pypi.org/project/opencv-python/
https://github.com/skvark/opencv-python

How should this be done within a Portfile? Effectively, `git clone https://github.com/opencv/opencv.git` must be run in the pre-build stage.

It must be a proper git repo—installing the opencv4 port isn’t enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191210/efbdba85/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191210/efbdba85/attachment.bin>


More information about the macports-dev mailing list