  # http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used
  class build_ext_options:
      def build_options(self):
          for e in self.extensions:
              e.extra_compile_args = compile_options.get(
                  self.compiler.compiler_type, compile_options['other'])
          for e in self.extensions:
              e.extra_link_args = link_options.get(
                  self.compiler.compiler_type, link_options['other'])
  
  
 
</s> remove             e.extra_link_args = link_options.get(
                self.compiler.compiler_type, link_options['other'])
 </s> add             e.extra_link_args += LINK_OPTIONS.get(
                self.compiler.compiler_type, LINK_OPTIONS['other']) </s> remove 
if os.environ.get('USE_OPENMP') == '1':
    compile_options['msvc'].append('/openmp')


if not sys.platform.startswith('darwin'):
    compile_options['other'].append('-fopenmp')
    link_options['other'].append('-fopenmp')

 </s> add  
# I don't understand this very well yet. See Issue #267
# Fingers crossed!
#if os.environ.get('USE_OPENMP') == '1':
#    compile_options['msvc'].append('/openmp')
#
#
#if not sys.platform.startswith('darwin'):
#    compile_options['other'].append('-fopenmp')
#    link_options['other'].append('-fopenmp')
#

USE_OPENMP_DEFAULT = '1' if sys.platform != 'darwin' else None
if os.environ.get('USE_OPENMP', USE_OPENMP_DEFAULT) == '1':
    if sys.platform == 'darwin':
        COMPILE_OPTIONS['other'].append('-fopenmp')
        LINK_OPTIONS['other'].append('-fopenmp')
        PACKAGE_DATA['spacy.platform.darwin.lib'] = ['*.dylib']
        PACKAGES.append('spacy.platform.darwin.lib')

    elif sys.platform == 'win32':
        COMPILE_OPTIONS['msvc'].append('/openmp')

    else:
        COMPILE_OPTIONS['other'].append('-fopenmp')
        LINK_OPTIONS['other'].append('-fopenmp') </s> remove link_options = {
 </s> add LINK_OPTIONS = {
            e.extra_compile_args += COMPILE_OPTIONS.get(
                self.compiler.compiler_type, COMPILE_OPTIONS['other'])
  # http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used
  class build_ext_options:
      def build_options(self):
          for e in self.extensions:
            e.extra_compile_args += COMPILE_OPTIONS.get(
                self.compiler.compiler_type, COMPILE_OPTIONS['other'])
            e.extra_compile_args += COMPILE_OPTIONS.get(
                self.compiler.compiler_type, COMPILE_OPTIONS['other'])
          for e in self.extensions:
              e.extra_link_args = link_options.get(
                  self.compiler.compiler_type, link_options['other'])
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Integrate patch from @mikepb re building OpenMP-supporting wheels for macOS / OSX. I'm running blind on this, so this commit might not be 100%. Rollback if there are any problems. See Issue #267. 
setup.py