开发者

What files do I need to include with my Python app?

开发者 https://www.devze.com 2022-12-09 06:57 出处:网络
I have an app that uses the python/c api and I was wondering what files I need to distrib开发者_JAVA技巧ute with it? The app runs on Windows and links with libpython31.a Are there any other files? I t

I have an app that uses the python/c api and I was wondering what files I need to distrib开发者_JAVA技巧ute with it? The app runs on Windows and links with libpython31.a Are there any other files? I tried the app on a seperate Win2k system and it said that python31.dll was needed so theres at least one.

Edit - My app is written in C++ and uses the Python/C api as noted below.


The best way to tell is to try it on 'clean' installations of windows and see what it complains about. Virtual machines are a good way to do that.


You'll need at least Python's own DLL (release-specific) and the wincrt DLL version it requires, also Python version depended (if you want to run on releases of Windows that don't come with that DLL). The popular py2exe, the not-widely-know but hugely powerful Pyinstaller (NOTE: use the svn version, not the released version which is aeons behind), and similar package-makers, do a good job of identifying and solving all such dependencies, so there's no case for doing it by hand!

0

精彩评论

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