Skip to content

Commit

Permalink
python: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nrybowski committed Feb 7, 2025
1 parent ba2a2c6 commit 8a4ceed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions dune-mpf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .dune_mpf import *

__doc__ = dune_mpf.__doc__
if hasattr(dune_mpf, "__all__"):
__all__ = dune_mpf.__all__
4 changes: 2 additions & 2 deletions dune-mpf/dune_mpf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytoml
import yaml

import dune_mpf
from dune_mpf import dune_mpf
import mpf


Expand Down Expand Up @@ -34,7 +34,7 @@ def setup():

# Import DUNE module on every phynode
with mpf.client[:].sync_imports(quiet=False):
import dune_mpf
from dune_mpf import dune_mpf

# Send DUNE context to every phynode
mpf.client[:].push({'dune': dune})
Expand Down
10 changes: 5 additions & 5 deletions dune-mpf/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "dune"
dependencies = ["pytoml", "pyyaml", "mpf @ git+https://github.com/mpiraux/mpf.git"]

[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"]
# target = ["aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
# [tool.maturin.target]
# arch = "aarch64"

name = "dune"

0 comments on commit 8a4ceed

Please sign in to comment.