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

  • 關於本站
  • 免責聲明