Build pyd

This commit is contained in:
wqy
2024-01-13 11:38:52 +08:00
parent 8e7b3ebc1f
commit 37f5210ab9
3 changed files with 12 additions and 2 deletions

7
.gitignore vendored
View File

@@ -20,4 +20,9 @@ build_db.py
*.opt.json
# todo
TODO.md
TODO.md
# build pyd
build
*.c
*.pyd

4
build_pyd.py Normal file
View File

@@ -0,0 +1,4 @@
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules=cythonize("tjnetwork.py"))

View File

@@ -18,7 +18,8 @@ def install():
packages = [
'"psycopg[binary]"',
'pytest',
'numpy']
'numpy',
'Cython']
if minor == 4:
packages.append('script/package/PyMetis-2018.1-cp34-cp34m-win_amd64.whl')