开发者

How to make python module installer for windows?

开发者 https://www.devze.com 2023-01-25 08:58 出处:网络
How to make python module installer for windows? I have python (2.7 if that makes difference) mo开发者_运维技巧dule which wrapped functionality around C-lib and would like to make an installer with b

How to make python module installer for windows?

I have python (2.7 if that makes difference) mo开发者_运维技巧dule which wrapped functionality around C-lib and would like to make an installer with build lib to make installation easy.


Using distutils, you can write a setup file that would compile your libs and install them

  • http://docs.python.org/library/distutils.html
  • http://docs.python.org/distutils/index.html#distutils-index

See this example setup.py which also compiles "c" lib for different platforms.

  • http://code.google.com/p/psutil/source/browse/trunk/setup.py
0

精彩评论

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