Open
Conversation
…into scikit_build_core_wheel
…into scikit_build_core_wheel
Owner
Author
|
python package wheel can be built and tested on this PR using these commands from this branch # build manylinux image
docker build -t openmc -f tools/ci/manylinux.dockerfile .
docker build --no-cache --build-arg Python_ABI=cp310-cp310 --build-arg=OPENMC_USE_DAGMC=ON -t openmc_wheel:python3.10 -f tools/ci/manylinux.dockerfile .
docker build --no-cache --build-arg Python_ABI=cp311-cp311 --build-arg=OPENMC_USE_DAGMC=ON -t openmc_wheel:python3.11 -f tools/ci/manylinux.dockerfile .
docker build --no-cache --build-arg Python_ABI=cp312-cp312 --build-arg=OPENMC_USE_DAGMC=ON -t openmc_wheel:python3.12 -f tools/ci/manylinux.dockerfile .copy out the wheels docker image for testing resulting wheel called FROM ubuntu:24.04
ARG python_version=3.12
ENV python_version_no_dot=${python_version//./}
RUN apt update -y && apt upgrade -y && \
apt install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt update -y && \
apt install -y python${python_version} python${python_version}-venv python3-pip
RUN apt install libhdf5-dev -y
RUN python${python_version} -m venv openmc_venv
ENV PATH=/openmc_venv/bin:$PATH
COPY wheelhouse/openmc-0.15.1.dev0-cp${python_version_no_dot}-cp${python_version_no_dot}-manylinux_2_28_x86_64.whl .
RUN python${python_version} -m pip install openmc-0.15.1.dev0-cp${python_version_no_dot}-cp${python_version_no_dot}-manylinux_2_28_x86_64.whl
RUN python${python_version} -c "import openmc.lib"
### testing with generic model
COPY minimal_test.py .
COPY small_dagmc_file.h5m .
COPY cross_sections.xml .
COPY Li.h5 .
COPY Li7.h5 .
COPY small_um.vtk .
RUN apt install libxrender1 -y
RUN python${python_version} minimal_test.pybuild the testing dockerfile docker build -f wheeltest.Dockerfile --build-arg python_version=3.10 .
docker build -f wheeltest.Dockerfile --build-arg python_version=3.11 .
docker build -f wheeltest.Dockerfile --build-arg python_version=3.12 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.