Skip to content

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

@jaredl7

Description

@jaredl7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions