开发者

Python4Delphi-powered program, how to deploy it?

开发者 https://www.devze.com 2023-04-05 14:27 出处:网络
My Delphi program uses Python4Delphi, and the Python script uses some standard libs. When deploying my program I don\'t want an entire Python installation, and it must work with python27.dll. What are

My Delphi program uses Python4Delphi, and the Python script uses some standard libs. When deploying my program I don't want an entire Python installation, and it must work with python27.dll. What are the minimal set of necessary files? The do开发者_如何学运维cument in Python4Delphi is dated and it's not clear to me...

Thanks for your help.


When I did this, I made the list myself, of what I needed for my embedded python application to work.

I remember this worked with 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.

  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. There is no way you need all of Python's standard libraries. But I wouldn't want to live without OS and a a few other key ones. BUt the decision is yours.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号