Heroku

xmlsec/xmlsec1 In Heroku Python

Submitted by gpmidi on Thu, 02/27/2020 - 21:24

Need xmlsec (aka xmlsec1) working in Heroku's Python? Try this: 

  1. Install buildpack: heroku buildpacks:add --index 1 heroku-community/apt
    1. This needs to be before the Python buildpack. You can validate that in the settings tab now days. 
  2. Create an Aptfile in the root of your project and add:
    1. libxml2-dev
      libxml2
      libxmlsec1-dev
      libxmlsec1
      libxmlsec1-openssl
      build-essential
      libxml2-utils
      xmlsec1
  3. Commit & Push!