py2.7-config usage

Mark Brethen mark.brethen at gmail.com
Fri Jul 4 14:45:41 PDT 2014


How do I use python-config (or python2.7-config) to assign FreeCAD's config options: -DPYTHON_LIBRARY and -DPYTHON_INCLUDE_DIR? I've tried this:

python_prefix = '${prefix}/bin/python2.7-config --prefix}'.strip
python_library = "${python_prefix}/Python"
python_include_dir = "${python_prefix}/Headers"

configure.args-append   -DFREECAD_BUILD_ROBOT=OFF \
    -DPYTHON_LIBRARY=${python_library} \
    -DPYTHON_INCLUDE_DIR=${python_include_dir}  \

but it gives an error.


Mark






More information about the macports-dev mailing list