Include openssl in app

大城市里の小女人 提交于 2020-01-15 17:20:35

问题


I am trying to build a standalone version of Bitmessage for OS X. So far, I have managed to include PyQt4 in the build by having the following setup.py:

from setuptools import setup

APP = ['bitmessagemain.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True,
 'iconfile': '/Users/jackson/Desktop/Bitmessagelogo-reduced.icns', 'includes': ['PyQt4']}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

I can't seem to figure out how to bundle openssl in my includes. Does anyone know?


回答1:


Py2app should detect a dependency on openssl if there is an import statement for an extension that links with openssl (for example the stdlib SSL support or pyOpenSSL).

That said, py2app will not include the copy of openssl from /usr/lib into your application bundle. Files from system locations (such as /usr/lib and /System) are assumed to be operating system files and are never included in bundles created by py2app.



来源:https://stackoverflow.com/questions/17015490/include-openssl-in-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!