File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 49
49
ensure_packages($python3_venv_package )
50
50
51
51
Package[$python3_venv_package ] -> File [$venv_dir ]
52
+
53
+ if $facts [' os' ][' distro' ][' codename' ] in [' buster' ,' bionic' ] {
54
+ $python3_distutils_package = " python${normalized_python_version} -distutils"
55
+ ensure_packages($python3_distutils_package )
56
+
57
+ Package[$python3_distutils_package ] -> File [$venv_dir ]
58
+ }
52
59
}
53
60
54
61
# pyvenv is deprecated since 3.6 and will be removed in 3.8
Original file line number Diff line number Diff line change 21
21
if %w[ xenial bionic cosmic disco stretch buster ] . include? ( facts [ :lsbdistcodename ] )
22
22
it { is_expected . to contain_package ( 'python3.5-venv' ) . that_comes_before ( 'File[/opt/env]' ) }
23
23
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
24
28
end
25
29
26
30
describe 'when ensure' do
You can’t perform that action at this time.
0 commit comments