File tree 2 files changed +13
-0
lines changed
2 files changed +13
-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
+ 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
+ }
52
61
}
53
62
54
63
# 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