python bindings
This commit is contained in:
parent
daf84f29ab
commit
575e89f34b
11 changed files with 507 additions and 13 deletions
9
bot/pyproject.toml
Normal file
9
bot/pyproject.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[build-system]
|
||||
requires = ["maturin>=1.0,<2.0"]
|
||||
build-backend = "maturin"
|
||||
|
||||
[tool.maturin]
|
||||
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
|
||||
features = ["pyo3/extension-module"]
|
||||
# python-source = "python"
|
||||
# module-name = "trictrac.game"
|
||||
4
bot/python/test.py
Normal file
4
bot/python/test.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import store
|
||||
|
||||
game = store.TricTrac()
|
||||
print(game.get_state_dict())
|
||||
Loading…
Add table
Add a link
Reference in a new issue