Installing SciTokens on a Mac
In case I ever have to install SciTokens again, the steps I took to make it work on my mac. The most difficult part of this is installing openssl headers for the jwt python library. I followed the advice on this blog post.
- Install Homebrew
-
Install openssl:
brew install openssl
-
Download the SciTokens library:
git clone https://github.com/scitokens/scitokens.git cd scitokens
-
Create the virtualenv to install the jwt library
virtualenv jwt . jwt/bin/activate
-
Install jwt pointing to the Homebrew installed openssl headers:
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography PyJWT