less than 1 minute read

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.

  1. Install Homebrew
  2. Install openssl:

     brew install openssl
  3. Download the SciTokens library:

     git clone https://github.com/scitokens/scitokens.git
     cd scitokens
  4. Create the virtualenv to install the jwt library

     virtualenv jwt
     . jwt/bin/activate
  5. 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

Leave a comment