jacquesfize / GMatch4py

A graph matching library for Python
MIT License
192 stars 41 forks source link

Fixing a failing build on Mojave (OSX 10.14) #16

Open jaredl7 opened 4 years ago

jaredl7 commented 4 years ago

Attempting to install GMatch4py for Python 3.5 and Python 3.6 on Mojave in a virtual environment fails with clang reporting:

clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)

This is because the deployment target isn't being recognized by clang. This can be rectified by doing export MACOSX_DEPLOYMENT_TARGET=10.14 before running the build.

Finally, the FutureWarning reported by Cython:

FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release!

can be resolved by changing the extensions line in setup.py to:

extensions = cythonize([makeExtension(name) for name in extNames], compiler_directives={'language_level': '3'})

Reference: https://stackoverflow.com/a/53992016

GMatch4py-build-error.txt