File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4949 ensure_packages($python3_venv_package )
5050
5151 Package[$python3_venv_package ] -> File [$venv_dir ]
52+
53+ case $facts [' os' ][' distro' ][' codename' ] {
54+ ' buster' ,' bionic' : {
55+ $python3_distutils_package = " python${normalized_python_version} -distutils"
56+ ensure_packages($python3_distutils_package )
57+
58+ Package[$python3_distutils_package ] -> File [$venv_dir ]
59+ }
60+ }
5261 }
5362
5463 # pyvenv is deprecated since 3.6 and will be removed in 3.8
Original file line number Diff line number Diff line change 2121 if %w[ xenial bionic cosmic disco stretch buster ] . include? ( facts [ :lsbdistcodename ] )
2222 it { is_expected . to contain_package ( 'python3.5-venv' ) . that_comes_before ( 'File[/opt/env]' ) }
2323 end
24+
25+ if %w[ bionic buster ] . include? ( facts [ :lsbdistcodename ] )
26+ it { is_expected . to contain_package ( 'python3.5-distutils' ) . that_comes_before ( 'File[/opt/env]' ) }
27+ end
2428 end
2529
2630 describe 'when ensure' do
You can’t perform that action at this time.
0 commit comments