-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.13 and simplifications (#39)
- Loading branch information
Showing
20 changed files
with
307 additions
and
464 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
FROM ghcr.io/spack/manylinux2014:v2023-10-03 | ||
FROM ghcr.io/spack/manylinux2014:v2024-10-16 | ||
|
||
RUN cd /opt/_internal && tar xvf static-libs-for-embedding-only.tar.xz && cd - | ||
RUN tar -C /opt/_internal -xvf /opt/_internal/static-libs-for-embedding-only.tar.xz | ||
|
||
RUN adduser -m spack | ||
|
||
# Switch to a non-root user | ||
USER spack | ||
ENV SPACK_CMD="/opt/python/cp311-cp311/bin/python /home/spack/spack/bin/spack" | ||
WORKDIR /home/spack | ||
WORKDIR /root | ||
ENV PATH="/root/spack/bin/:$PATH" \ | ||
SPACK_BACKTRACE=please \ | ||
SPACK_COLOR=always \ | ||
SPACK_PYTHON=/opt/python/cp311-cp311/bin/python \ | ||
PYTHONUNBUFFERED=1 | ||
|
||
# Clone the repo and install Spack | ||
RUN git clone https://www.github.com/spack/spack.git && \ | ||
cd spack && \ | ||
git checkout -b docker-reference 08da9a854a53542e1f71d30ed8d14d6b7d18119f && \ | ||
cd .. | ||
RUN git clone https://github.com/spack/spack.git && \ | ||
git -C spack checkout -b docker-reference c710a1597f3566ab850d0ee8c82e71af04a08f9e | ||
|
||
# Set externals, locate compilers | ||
RUN ${SPACK_CMD} external find -j 1 --not-buildable bison cmake | ||
RUN ${SPACK_CMD} compiler find | ||
RUN ${SPACK_CMD} config add "config:concretizer:original" | ||
RUN ${SPACK_CMD} config add "config:install_tree:padded_length:256" | ||
|
||
# Run a script to build all the versions of clingo we could | ||
COPY --chown=spack:spack clingo/scripts/bootstrap_clingo_manylinux2014.sh /home/spack/bootstrap_clingo2014.sh | ||
COPY --chown=spack:spack clingo/scripts/install_clingo.py /home/spack/install_clingo.py | ||
|
||
RUN ${HOME}/bootstrap_clingo2014.sh 36 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 37 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 38 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 39 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 310 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 311 | ||
RUN ${HOME}/bootstrap_clingo2014.sh 312 | ||
|
||
COPY --chown=spack:spack clingo/scripts/create_binary_mirror.sh /home/spack/create_binary_mirror.sh | ||
RUN ${HOME}/create_binary_mirror.sh | ||
RUN spack external find -j 1 --not-buildable bison cmake | ||
RUN spack compiler find | ||
RUN spack config add "config:install_tree:padded_length:256" | ||
|
||
COPY clingo/scripts/install_clingo.py /root/install_clingo.py | ||
|
||
RUN SPACK_PYTHON=/opt/python/cp313-cp313/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp312-cp312/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp311-cp311/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp310-cp310/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp39-cp39/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp38-cp38/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp37-cp37m/bin/python3 spack python install_clingo.py | ||
RUN SPACK_PYTHON=/opt/python/cp36-cp36m/bin/python3 spack python install_clingo.py | ||
|
||
RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.