logo
  • 教程列表
  • SO官方文档
  • Cython 绑定
    • 使用 pyinstaller 绑定 Cython 程序
    • 自动构建(Windows)
    • 将 Numpy 添加到绑定包中
  1. StackOverflow 文档
  2. cython 教程
  3. Cython 绑定
  4. 自动构建(Windows)

自动构建(Windows)

Created: November-22, 2018

要在 Windows 中自动执行上述过程,请使用类似内容的 .bat:

del "main.exe"
python setup.py build_ext --inplace
del "*.c"
rmdir /s /q ".\build"
pyinstaller --onefile "main.py"
copy /y ".\dist\main.exe" ".\main.exe"
rmdir /s /q ".\dist"
rmdir /s /q ".\build"
del "*.spec"
del "*.pyd"
  • 将 Numpy 添加到绑定包中
  • 使用 pyinstaller 绑定 Cython 程序

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明