Open matthewd-canva opened 8 months ago
matthewd: should I change the
to
That might help if a range of situations
The file contains C++ so the include is correct. But note that nothing from that include is used in that file. Also note that string.h
is included, but that is incorrect for C++ (it should be cstring
, same case for errno.h
-> cerrno.h
).
It's possible that you could remove the string
include and it would work, but that might just mask the error - is clang
compiling C++ correctly or is it trying to compile C++ as C?
Hi,
Attempting to install
py-tlsh
in my environment produces an error, due to setuptools choosing a C instead of C++ compiler.I'm guessing this has something to do with the setuptools version not auto detecting C++ - maybe you could explicitly set it?
Setup
I'm using the following environment on an M1 Mac (aarch64):
```nix { pkgs ? importshell.nix
Strangely the install works as expected when using host Python, just not in the nix shell. Running
pip debug --verbose
in the two environments is identical, excluding the build dates of Python itself. Also install works as expected when using the same nix shell inside an Ubuntu docker container on the same host.What happens
Workaround
This should work without forcing
CC
environment var.