Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaredl7 opened this issue Jan 9, 2020 · 0 comments
Open

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

jaredl7 opened this issue Jan 9, 2020 · 0 comments

Comments

@jaredl7
Copy link

jaredl7 commented Jan 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant