Skip to content

Commit

Permalink
Modified for Maturin and emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Aug 8, 2022
1 parent 4c3d0e3 commit 436df72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ categories = ["game-engines", "graphics", "multimedia"]
keywords = ["game", "gamedev", "python"]

[lib]
name = "pyxel_wrapper"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.16", features = ["abi3-py37", "extension-module"] }
pyxel-engine = { path = "../engine", version="1.7.2" }

[target.'cfg(not(target_os = "emscripten"))'.dependencies]
sysinfo = "0.23"

[package.metadata.maturin]
name = "pyxel.pyxel_wrapper"
python-source = "../../src"

This comment has been minimized.

Copy link
@messense

messense Aug 8, 2022

I just find out that this is calculated from project root which is the directory containing pyproject.toml so it should be src.

I think it's better to be configured in pyproject.toml instead, see PyO3/maturin#1046.

0 comments on commit 436df72

Please sign in to comment.