Skip to content

Commit 543d8f5

Browse files
committed
remove virtalenv. build seems to work now
1 parent f7ba971 commit 543d8f5

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Dockerfile.build-whl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
1414
--no-install-recommends \
1515
&& rm -rf /var/lib/apt/lists/*
1616

17-
RUN python -m venv /venv
17+
# RUN python -m venv /venv
1818
# normall we do some uv here; but for simplicity lets not
19-
ENV PATH="/venv/bin:$PATH"
20-
RUN /venv/bin/python -m pip install pydantic
19+
# ENV PATH="/venv/bin:$PATH"
20+
# RUN /venv/bin/python -m pip install pydantic
2121

2222
# install rust
2323
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
@@ -30,7 +30,7 @@ COPY ./component /component
3030
RUN bash /component/build_pydantic.sh
3131

3232
# copy to venv location
33-
RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
33+
# RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
3434

3535
WORKDIR /component
3636

Dockerfile.use-whl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
1414
--no-install-recommends \
1515
&& rm -rf /var/lib/apt/lists/*
1616

17-
RUN python -m venv /venv
17+
# RUN python -m venv /venv
1818
# normall we do some uv here; but for simplicity lets not
19-
ENV PATH="/venv/bin:$PATH"
20-
RUN /venv/bin/python -m pip install pydantic
19+
# ENV PATH="/venv/bin:$PATH"
20+
# RUN /venv/bin/python -m pip install pydantic
2121

2222
# install pydantic wasi to folder
23-
RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core
23+
RUN pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: --index-url https://benbrandt.github.io/wasi-wheels/ --extra-index-url https://pypi.org/simple --upgrade pydantic_core pydantic
2424

2525
# copy to venv location
26-
RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
26+
# RUN cp -R /wasi_deps/pydantic_core /venv/lib/python3.13/site-packages/
2727

2828
RUN pip install componentize-py
2929
COPY ./app /app

component/build_pydantic.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ cargo run -- build pydantic-core 2.33.2 --python-versions py3-13
1919

2020
# install wheel
2121
pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: `find . -name \*cp313-cp313-wasi_0_0_0_wasm32.whl`
22+
pip install --target /wasi_deps --platform any --platform wasi_0_0_0_wasm32 --python-version "3.13" --only-binary :all: pydantic

0 commit comments

Comments
 (0)