Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dde0fe9

Browse files
rgbkrkSean OMeara
authored and
Sean OMeara
committed
[COOK-3788] Make symlink for source built python
Signed-off-by: Sean OMeara <[email protected]>
1 parent 5e02477 commit dde0fe9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

recipes/source.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,12 @@
5757
}) if platform?("ubuntu") && node['platform_version'].to_f >= 12.04
5858
not_if { ::File.exists?(install_path) }
5959
end
60+
61+
# Link install as the default python, to support Python 3.x
62+
# Otherwise the pip and virtualenv recipes won't work properly
63+
link node['python']['binary'] do
64+
to install_path
65+
not_if { ::File.exists?(node['python']['binary']) }
66+
end
67+
68+

0 commit comments

Comments
 (0)