the first issue i ran into was the processing of the `homebrew-[PKG_NAME].pth` files within the the python `site-packages` directory.
those `.pth` files can contain standard UNIX filesystem paths, and also contain lines requiring "interpretation" by a python interpreter (i believe) for example,
i have the `sphinx-doc` and `sphinx` packages installed on my system using `brew install sphinx sphinx-doc` after installing that homebrew package it will place a `sphinxcontrib_htmlhelp-1.0.3-py3.9-nspkg.pth` within the below dir
Code: Select all
$(brew --prefix)/opt/sphinx-doc/libexec/lib/python3.9/site-packages/
Code: Select all
import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('sphinxcontrib',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('sphinxcontrib', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('sphinxcontrib', [os.path.dirname(p)])));m = m or sys.modules.setdefault('sphinxcontrib', types.ModuleType('sphinxcontrib'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
so after running,
Code: Select all
cmake \
[INSERT_CMAKE_ARGS] \
[ARGS_OMITTED_FOR_PREVITY] \
-DFREECAD_CREATE_MAC_APP=ON \
-DCMAKE_INSTALL_PREFIX=/opt/beta/freecad.apl.bundle ../freecad-src
Code: Select all
make
Code: Select all
make install
Code: Select all
-- Installing: /opt/beta/freecad.apl.bundle/FreeCAD.app/Contents/libexec/matplotlib/lib/python3.9/site-packages/dateutil/tz/win.py
CMake Error at src/MacAppBundle/cmake_install.cmake:74 (file):
file INSTALL cannot find
"/opt/code/github/public/forks/freecad-git/freecad-src/src/MacAppBundle/import
site": No such file or directory.
Call Stack (most recent call first):
src/cmake_install.cmake:51 (include)
cmake_install.cmake:68 (include)
make: *** [install] Error 1
my current work around for above such issues when running `make install` and to use a standard UNIX style filesystem path, ie.
```
/usr/local/library/libexec/matplotlib/lib/python3.9/site-packages
```
and the `make install` process moves along further until another error is presented.
keep in mind this error only seems to happen when enabling the below cmake flag
Code: Select all
-DFREECAD_CREATE_MAC_APP=ON