Skip to content

Commit ad95fba

Browse files
authored
Merge pull request #1172 from Kaggle/add_7z
Add support for 7zip
2 parents d5246de + 2d30977 commit ad95fba

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list &
5959
apt-get update && \
6060
# Needed by lightGBM (GPU build)
6161
# https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html#build-lightgbm
62-
apt-get install -y build-essential unzip cmake libboost-dev libboost-system-dev libboost-filesystem-dev && \
62+
apt-get install -y build-essential unzip cmake libboost-dev libboost-system-dev libboost-filesystem-dev p7zip-full && \
6363
# b/182601974: ssh client was removed from the base image but is required for packages such as stable-baselines.
6464
apt-get install -y openssh-client && \
6565
/tmp/clean-layer.sh

tests/test_7z.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import subprocess
2+
import unittest
3+
4+
5+
class Test7z(unittest.TestCase):
6+
def test_basic(self):
7+
result = subprocess.run('which 7z', shell=True, capture_output=True)
8+
assert len(result.stdout) > 0

0 commit comments

Comments
 (0)