Skip to content

Commit

Permalink
Merge pull request #238 from lemberg/issue/234-pip-installation-broken
Browse files Browse the repository at this point in the history
Fix broken PiP installation by updating Python within the VM to v3.7
  • Loading branch information
T2L committed Jan 27, 2021
2 parents 9b3a95f + 1c1f17a commit 26ca0c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Updates:

Fixes:

- [GH-234](https://github.com/lemberg/draft-environment/issues/234) - Fix broken PiP installation by updating Python within the VM to version 3.7
- [GH-223](https://github.com/lemberg/draft-environment/issues/223) - Ensure that Python 3 is default in the VM
- [GH-218](https://github.com/lemberg/draft-environment/issues/218) - Address newly introduced PHPCS errors/warnings

Expand Down
8 changes: 7 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Ensure Python 3.x is set as a default.
config.vm.provision "shell",
inline: "rm /usr/bin/python && ln -s python3 /usr/bin/python"
keep_color: true,
inline: <<-SHELL
add-apt-repository ppa:deadsnakes/ppa -y
apt-get update -q
apt-get install python3.7 -y
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 10
SHELL

# Copy generated SSL certificate and private key to the VM.
unless configuration.get("mkcert").nil?
Expand Down

0 comments on commit 26ca0c6

Please sign in to comment.