diff --git a/wheel/pyproject.toml b/wheel/pyproject.toml index b051c326d..ee9090fac 100644 --- a/wheel/pyproject.toml +++ b/wheel/pyproject.toml @@ -6,6 +6,7 @@ build-backend = "maturin" bindings = "pyo3" features = ["pyo3/extension-module"] python-source = "python" +module-name = "chia_rs._chia_rs" [project] name = "chia_rs" diff --git a/wheel/python/chia_rs/__init__.py b/wheel/python/chia_rs/__init__.py index 0f476d128..ded7d2758 100644 --- a/wheel/python/chia_rs/__init__.py +++ b/wheel/python/chia_rs/__init__.py @@ -1,2 +1,2 @@ -from .chia_rs import * +from ._chia_rs import * from .spend import Spend \ No newline at end of file diff --git a/wheel/src/api.rs b/wheel/src/api.rs index 9a4a79579..1540117fc 100644 --- a/wheel/src/api.rs +++ b/wheel/src/api.rs @@ -465,7 +465,7 @@ pub fn py_get_flags_for_height_and_constants(height: u32, constants: &ConsensusC } #[pymodule] -pub fn chia_rs(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> { +pub fn _chia_rs(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> { // generator functions m.add_function(wrap_pyfunction!(run_block_generator, m)?)?; m.add_function(wrap_pyfunction!(run_block_generator2, m)?)?;