maljovec / topopy

A library for computing topological data structures stemming from Morse Theory. Given a set of arbitrarily arranged points in any dimension, this library is able to construct approximate topological structures using a neighborhood graph to simulate manifold structures.
BSD 3-Clause "New" or "Revised" License
20 stars 6 forks source link

Pip Install not working on MacOS #27

Closed dmaljovec closed 4 years ago

dmaljovec commented 5 years ago

FYI, I had to add "-stdlib=libc++” to the extra_compile_args in setup.py to get it compile on my Mac. Running “pip install topopy” doesn’t work otherwise.

Here is the original error

building '_topology' extension creating build/temp.macosx-10.7-x86_64-3.6 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yarden/miniconda3/envs/neup/include -arch x86_64 -I/Users/yarden/miniconda3/envs/neup/include -arch x86_64 -I/Users/yarden/miniconda3/envs/neup/include/python3.6m -c UnionFind.cpp -o build/temp.macosx-10.7-x86_64-3.6/UnionFind.o -O3 -march=native warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from UnionFind.cpp:1: ./UnionFind.h:4:10: fatal error: 'cstdlib' file not found

include

       ^~~~~~~~~

1 warning and 1 error generated. error: command 'gcc' failed with exit status 1


Failed building wheel for topopy

Error not replicated yet.