简体   繁体   English

受Python4Delphi支持的程序,如何部署?

[英]Python4Delphi-powered program, how to deploy it?

My Delphi program uses Python4Delphi , and the Python script uses some standard libs. 我的Delphi程序使用Python4Delphi ,而Python脚本使用一些标准库。 When deploying my program I don't want an entire Python installation, and it must work with python27.dll. 部署程序时,我不需要整个Python安装,它必须与python27.dll一起使用。 What are the minimal set of necessary files? 最少需要的文件是什么? The document in Python4Delphi is dated and it's not clear to me... Python4Delphi中的文档已过时,我不清楚...

Thanks for your help. 谢谢你的帮助。

When I did this, I made the list myself, of what I needed for my embedded python application to work. 当我这样做时,我自己列出了嵌入式python应用程序正常工作所需的清单。

I remember this worked with python15.dll: 我记得这与python15.dll一起工作:

  1. PythonXX.dll should work, without any other external files other than the Visual C++ Runtime DLLs, which require a side-by-side manifest (see the p4d wiki page) to work. PythonXX.dll应该可以正常运行,除了Visual C ++运行时DLL之外,不需要任何其他外部文件,Visual DLL需要并行显示(请参阅p4d Wiki页面)。

  2. If you want to IMPORT something, then you need to ship it and anything it depends on. 如果要导入某些东西,则需要运输它以及它所依赖的任何东西。 That means, either you pick part of the python standard libraries you want, or you pick all of it. 这意味着,要么选择所需的部分python标准库,要么全部选择。 There is no way you need all of Python's standard libraries. 您根本不需要所有Python的标准库。 But I wouldn't want to live without OS and aa few other key ones. 但是我不想没有操作系统和其他一些关键功能。 BUt the decision is yours. 决定由您决定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM