Problems with custom LIBFFI Heroku buildpack

前端 未结 1 1211
情歌与酒
情歌与酒 2021-02-10 22:49

I\'m trying to deploy my app to Heroku. It is using pyOpenSSL, which requires cryptography, which requires libffi. I found a custom buildp

1条回答
  •  隐瞒了意图╮
    2021-02-10 23:25

    It appears github user kennethjiang had the same problem and forked the custom libffi buildpack with a fix just four days ago.

    Here are the relevant changes:

    https://github.com/kennethjiang/heroku-buildpack-python-libffi/compare/3bb5fab8213f41411f515f21a6c83ff36c8aa1f2...8ef02

    $ heroku config:add BUILDPACK_URL=git://github.com/kennethjiang/heroku-buildpack-python-libffi.git
    $ git push heroku master
    Initializing repository, done.
    Counting objects: 3, done.
    Writing objects: 100% (3/3), 260 bytes, done.
    Total 3 (delta 0), reused 0 (delta 0)
    
    -----> Fetching custom git buildpack... done
    -----> Python app detected
    -----> No runtime.txt provided; assuming python-2.7.4.
    -----> Preparing Python runtime (python-2.7.4)
    -----> Installing Distribute (0.6.36)
    -----> Installing Pip (1.3.1)
    -----> Noticed cffi. Bootstrapping libffi.
    PKG_CONFIG_PATH=:/app/vendor/libffi-3.0/lib/pkgconfig/
    libffi.pc is in-place at /app/vendor/libffi-3.0/vendor/lib/pkgconfig/libffi.pc, libffi-based builds should work!
    -----> Installing dependencies using Pip (1.3.1)
           Downloading/unpacking pyOpenSSL==0.14 (from -r requirements.txt (line 1))
             Running setup.py egg_info for package pyOpenSSL
    
               no previously-included directories found matching 'doc/_build'
           Downloading/unpacking cryptography==0.2.2 (from -r requirements.txt (line 2))
             Running setup.py egg_info for package cryptography
               no previously-included directories found matching 'documentation/_build'
               zip_safe flag not set; analyzing archive contents...
               six: module references __file__
               six: module references __path__
    
               Installed /tmp/pip-build-u24412/cryptography/six-1.6.1-py2.7.egg
               Searching for cffi>=0.8
               Reading http://pypi.python.org/simple/cffi/
               Best match: cffi 0.8.2
               Downloading https://pypi.python.org/packages/source/c/cffi/cffi-0.8.2.tar.gz#md5=37fc88c62f40d04e8a18192433f951ec
               Processing cffi-0.8.2.tar.gz
               Writing /tmp/easy_install-vYzEMy/cffi-0.8.2/setup.cfg
               Running cffi-0.8.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vYzEMy/cffi-0.8.2/egg-dist-tmp-KU0RrQ
               cc -c c/check__thread.c -o c/check__thread.o
    
               Installed /tmp/pip-build-u24412/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg
    ...
    
           Successfully installed pyOpenSSL cryptography six cffi pycparser
           Cleaning up...
    
    -----> Discovering process types
           Procfile declares types -> (none)
    
    -----> Compressing... done, 27.9MB
    -----> Launching... done, v5
           http://quiet-atoll-6802.herokuapp.com/ deployed to Heroku
    
    To git@heroku.com:quiet-atoll-6802.git
     * [new branch]      master -> master
    

    0 讨论(0)
提交回复
热议问题