在应用程序中包含openssl [英] Include openssl in app

查看:67
本文介绍了在应用程序中包含openssl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为OS X构建独立版本的Bitmessage.到目前为止,我已经通过具有以下setup.py成功地将PyQt4包括在构建中:

来自setuptools导入设置的

 APP = ['bitmessagemain.py']DATA_FILES = []选项= {'argv_emulation':是的,'iconfile':'/Users/jackson/Desktop/Bitmessagelogo-reduced.icns','includes':['PyQt4']}设置(app = APP,data_files = DATA_FILES,options = {'py2app':OPTIONS},setup_requires = ['py2app'],) 

我似乎不知道如何在我的include中捆绑openssl.有人知道吗?

解决方案

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

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

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?

解决方案

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.

这篇关于在应用程序中包含openssl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆