unable to execute swig: No such file or directorywhen doing a normal push with your requirements.txt on place.
error: command 'swig' failed with exit status 1
I got a solution for you, you just need to use a thing heroku calls buildpacks, these are bash scripts that heroku uses to setup your application, dependencies and all.
So you need a custom buildpack that preinstalls m2crypto for you.
For an existing heroku app
heroku config:add BUILDPACK_URL=https://github.com/guybowden/heroku-buildpack-python-paybox.git
If you want to create an app with m2crypto builtin just do
heroku create myapp --buildpack https://github.com/guybowden/heroku-buildpack-python-paybox.git
And thats it, heroku will use this custom buildpack with the necessary code to install m2crypt.
Cheers!
No hay comentarios:
Publicar un comentario