在app中加入openssl

时间:2013-06-10 00:18:45

标签: python macos py2app

我正在尝试为OS X构建一个独立版本的Bitmessage。到目前为止,我已经设法在构建中包含PyQt4,具有以下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'],
)

我似乎无法弄清楚如何在我的包含中捆绑openssl。有谁知道吗?

1 个答案:

答案 0 :(得分:1)

如果存在与openssl链接的扩展的import语句(例如stdlib SSL支持或pyOpenSSL),Py2app应该检测对openssl的依赖。

也就是说,py2app不会将/ usr / lib中的openssl副本包含到您的应用程序包中。系统位置(例如/ usr / lib和/ System)中的文件被假定为操作系统文件,并且永远不会包含在py2app创建的包中。