Unverified Commit 7e452a2e authored by Jacky's avatar Jacky Committed by GitHub
Browse files

fix: Disable block manager by default in Python bindings (#1128)

parent aeb79e62
...@@ -375,10 +375,11 @@ RUN cargo build --release --locked --features mistralrs,python,dynamo-llm/block- ...@@ -375,10 +375,11 @@ RUN cargo build --release --locked --features mistralrs,python,dynamo-llm/block-
# Build dynamo wheel # Build dynamo wheel
RUN uv build --wheel --out-dir /workspace/dist && \ RUN uv build --wheel --out-dir /workspace/dist && \
cd /workspace/lib/bindings/python && \ cd /workspace/lib/bindings/python && \
uv build --wheel --out-dir /workspace/dist --python 3.12 && \ uv pip install maturin[patchelf] && \
maturin build --release --features block-manager --out /workspace/dist && \
if [ "$RELEASE_BUILD" = "true" ]; then \ if [ "$RELEASE_BUILD" = "true" ]; then \
uv build --wheel --out-dir /workspace/dist --python 3.11 && \ uv run --python 3.11 maturin build --release --features block-manager --out /workspace/dist && \
uv build --wheel --out-dir /workspace/dist --python 3.10; \ uv run --python 3.10 maturin build --release --features block-manager --out /workspace/dist; \
fi fi
####################################### #######################################
......
...@@ -51,7 +51,6 @@ module-name = "dynamo._core" ...@@ -51,7 +51,6 @@ module-name = "dynamo._core"
manifest-path = "Cargo.toml" manifest-path = "Cargo.toml"
python-packages = ["dynamo"] python-packages = ["dynamo"]
python-source = "src" python-source = "src"
features = ["block-manager"]
[build-system] [build-system]
requires = ["maturin>=1.0,<2.0", "patchelf"] requires = ["maturin>=1.0,<2.0", "patchelf"]
......
...@@ -14,7 +14,12 @@ ...@@ -14,7 +14,12 @@
# limitations under the License. # limitations under the License.
from dynamo._core import AggregatedMetrics as AggregatedMetrics from dynamo._core import AggregatedMetrics as AggregatedMetrics
from dynamo._core import BlockManager as BlockManager
try:
from dynamo._core import BlockManager as BlockManager
except ImportError:
pass # BlockManager is not enabled by default
from dynamo._core import DisaggregatedRouter as DisaggregatedRouter from dynamo._core import DisaggregatedRouter as DisaggregatedRouter
from dynamo._core import HttpAsyncEngine as HttpAsyncEngine from dynamo._core import HttpAsyncEngine as HttpAsyncEngine
from dynamo._core import HttpError as HttpError from dynamo._core import HttpError as HttpError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment