Skip to content

Commit 10384a9

Browse files
committed
Fix PY_PATH environment variable
1 parent 4d529ec commit 10384a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clingo/Dockerfile.manylinux2014

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ RUN spack config add "config:install_tree:padded_length:256"
2323
COPY clingo/install_clingo.py /root/install_clingo.py
2424

2525
RUN export PY_PATH=$(printf '%s' "$PYTHON_VERSION" | \
26-
awk -F. '{maj=$1; min=$2; suf=(maj*10+min<=37)?"m":""; printf "cp%d%d-cp%d%d%s\n", maj, min, maj, min, suf}')
27-
28-
RUN SPACK_PYTHON=/opt/python/$PY_PATH/bin/python3 spack python install_clingo.py
26+
awk -F. '{maj=$1; min=$2; suf=(maj*10+min<=37)?"m":""; printf "cp%d%d-cp%d%d%s\n", maj, min, maj, min, suf}') \
27+
&& SPACK_PYTHON=/opt/python/${PY_PATH}/bin/python3 spack python install_clingo.py
2928

3029
RUN spack buildcache push --unsigned ./binary-mirror $(spack --color=never find --hashes clingo-bootstrap)

0 commit comments

Comments
 (0)