Skip to content

Commit a386ecd

Browse files
: regualar rlib, not a python extension module
Differential Revision: D89247451
1 parent c06bfb0 commit a386ecd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

monarch_extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ monarch_rdma_extension = { version = "0.0.0", path = "../monarch_rdma/extension"
3030
monarch_tensor_worker = { version = "0.0.0", path = "../monarch_tensor_worker", optional = true }
3131
nccl-sys = { path = "../nccl-sys", optional = true }
3232
ndslice = { version = "0.0.0", path = "../ndslice" }
33-
pyo3 = { version = "0.24", features = ["anyhow", "multiple-pymethods", "py-clone"] }
33+
pyo3 = { version = "0.24", features = ["anyhow", "extension-module", "multiple-pymethods", "py-clone"] }
3434
rdmaxcel-sys = { path = "../rdmaxcel-sys", optional = true }
3535
serde = { version = "1.0.219", features = ["derive", "rc"] }
3636
tokio = { version = "1.47.1", features = ["full", "test-util", "tracing"] }

monarch_hyperactor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ndslice = { version = "0.0.0", path = "../ndslice" }
4646
nix = { version = "0.30.1", features = ["dir", "event", "hostname", "inotify", "ioctl", "mman", "mount", "net", "poll", "ptrace", "reboot", "resource", "sched", "signal", "term", "time", "user", "zerocopy"] }
4747
once_cell = "1.21"
4848
opentelemetry = "0.29"
49-
pyo3 = { version = "0.24", features = ["anyhow", "multiple-pymethods"] }
49+
pyo3 = { version = "0.24", features = ["anyhow", "multiple-pymethods", "py-clone"] }
5050
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "tokio-runtime"] }
5151
serde = { version = "1.0.219", features = ["derive", "rc"] }
5252
serde_bytes = "0.11"

monarch_hyperactor/src/channel.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ impl From<PyChannelTransport> for ChannelTransport {
146146
}
147147
}
148148

149-
#[pymodule]
150149
pub fn register_python_bindings(hyperactor_mod: &Bound<'_, PyModule>) -> PyResult<()> {
151150
hyperactor_mod.add_class::<PyChannelTransport>()?;
152151
hyperactor_mod.add_class::<PyChannelAddr>()?;

0 commit comments

Comments
 (0)