首页 » 技术分享 » python打包编译成pyd或者.so,保护代码。

python打包编译成pyd或者.so,保护代码。

 

一、准备工作, setup.py的打包

Standard commands:
  build             build everything needed to install
  build_py          "build" pure Python modules (copy to build directory)
  build_ext         build C/C++ extensions (compile/link to build directory)
  build_clib        build C/C++ libraries used by Python extensions
  build_scripts     "build" scripts (copy and fixup #! line)
  clean             clean up temporary files from 'build' command
  install           install everything from build directory
  install_lib       install all Python modules (extensions and pure Python)
  install_headers   install C/C++ header files
  install_scripts   install scripts (Python or otherwise)
  install_data      install data files
  sdist             create a source distribution (tarball, zip file, etc.)
  register          register the distribution with the Python package index
  bdist          

转载自原文链接, 如需删除请联系管理员。

原文链接:python打包编译成pyd或者.so,保护代码。,转载请注明来源!

0