steem-python
steem-python copied to clipboard
package doesn't install gracefully on macos
#include <openssl/aes.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
This is technically an scrypt issue, but we depend on it so we should fix it. As a workaround, I use this code in my Makefile:
if [[ $(shell uname) == 'Darwin' ]]; then \
brew install openssl; \
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"
fi
The installation should, at the very least, check the default hombrew openssl lib location, with an instructional error message in the event homebrew and/or openssl not installed
This is likely the cause of the build issue for yo on OS X too.
Please supply a patch to the makefile that includes your fix and we can update pypi to make it work.
@john-g-g When I also run the below commands after brew install openssl
it fixed my problems.
export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS"
export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"