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-
# Build dynamo wheel
RUN uv build --wheel --out-dir /workspace/dist && \
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 \
uv build --wheel --out-dir /workspace/dist --python 3.11 && \
uv build --wheel --out-dir /workspace/dist --python 3.10; \
uv run --python 3.11 maturin build --release --features block-manager --out /workspace/dist && \
uv run --python 3.10 maturin build --release --features block-manager --out /workspace/dist; \
fi
#######################################
......
......@@ -51,7 +51,6 @@ module-name = "dynamo._core"
manifest-path = "Cargo.toml"
python-packages = ["dynamo"]
python-source = "src"
features = ["block-manager"]
[build-system]
requires = ["maturin>=1.0,<2.0", "patchelf"]
......
......@@ -14,7 +14,12 @@
# limitations under the License.
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 HttpAsyncEngine as HttpAsyncEngine
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