Skip to content

Commit

Permalink
Switch to "python2" explicitly for 3.x versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jan 2, 2024
1 parent 2c12419 commit a03ffc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3.0/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 3.11/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Dockerfile.template
Expand Up @@ -19,9 +19,12 @@ RUN set -eux; \
{{
# python3 is only supported in 4.0+
# https://issues.apache.org/jira/browse/CASSANDRA-10190
# https://github.com/apache/cassandra/blob/cassandra-3.11.16/bin/cqlsh#L18-L26
# https://github.com/apache/cassandra/blob/cassandra-3.0.29/bin/cqlsh#L18-L26
# (only looking for/accepting Python 2.7 specifically)
if major < 4 then (
-}}
python \
python2 \
{{ ) else ( -}}
python3 \
{{ ) end -}}
Expand Down

0 comments on commit a03ffc3

Please sign in to comment.