Commit a655e1cc authored by Rob Earhart's avatar Rob Earhart Committed by Scott Cyphers

Use libc++ for macOS core python wheel (#3177)

* Use libc++ for macOS core python wheel

* numpy version
parent 0611ae23
......@@ -326,6 +326,7 @@ def add_platform_specific_link_args(link_args):
link_args += ['-z', 'now']
elif sys.platform == 'darwin':
link_args += ['-Wl,-rpath,@loader_path/../..']
link_args += ['-stdlib=libc++']
class BuildExt(build_ext):
......@@ -360,6 +361,8 @@ class BuildExt(build_ext):
ext.extra_compile_args += ['-Wformat', '-Wformat-security']
ext.extra_compile_args += ['-O2', '-D_FORTIFY_SOURCE=2']
if sys.platform == 'darwin':
ext.extra_compile_args += ['-stdlib=libc++']
build_ext.build_extensions(self)
......@@ -381,7 +384,7 @@ setup(
packages=packages,
cmdclass={'build_ext': BuildExt},
data_files=data_files,
setup_requires=['numpy'],
setup_requires=['numpy==1.16.4'],
install_requires=requirements,
zip_safe=False,
extras_require={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment