Python port group overwrites CMAKE_MAKE_PROGRAM, breaks configure in opencv4

Joshua Root jmr at macports.org
Mon Jul 13 23:04:28 UTC 2020


On 2020-7-14 07:51 , Steven Smith wrote:
> I’m trying to build python wrappers in the opencv4 Portfile. Port opencv4 uses the cmake 1.1 port group.
> 
> The issue I’m running into is that when I add the port group python, the environment variable CMAKE_MAKE_PROGRAM is defined as `python setup.py --no-user-cfg` (actual -D option below), and this breaks the configure stage.
> 
> How should this be prevented when the port groups cmake and python are used together, and configure should use make, not python?
> 
> -DCMAKE_MAKE_PROGRAM=/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py --no-user-cfg

The python portgroup is designed to aid installing software with
setup.py. If your software is not installed that way, don't use the
python portgroup.

- Josh


More information about the macports-dev mailing list