From d35d01b705b49bac57f37a843da7ecd17990693c Mon Sep 17 00:00:00 2001 From: Mark Tiedemann Date: Sat, 16 Feb 2019 00:51:30 +0100 Subject: [PATCH] Deprecate Python installer (#42) --- README.md | 12 ------------ install.py | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4b641cd..083bd3c 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,6 @@ Downloads the latest Deno binary into `$HOME/.deno/bin`. curl -L https://deno.land/x/install/install.sh | sh ``` -**Install with Python:** - -```sh -curl -L https://deno.land/x/install/install.py | python -``` - **Install with PowerShell:** ```powershell @@ -36,12 +30,6 @@ If you need to install specific version of deno, use the following commands: curl -L https://deno.land/x/install/install.sh | sh -s v0.2.0 ``` -**Install with Python:** - -```sh -curl -L https://deno.land/x/install/install.py | python - v0.2.0 -``` - **Install with PowerShell:** ```powershell diff --git a/install.py b/install.py index 7d99b13..72841a5 100755 --- a/install.py +++ b/install.py @@ -80,6 +80,19 @@ def download_with_progress(url): def main(): + print("=========================================", file=sys.stderr) + print("| WARNING: THIS INSTALLER IS DEPRECATED |", file=sys.stderr) + print("| AND WILL BE REMOVED ON MARCH 1, 2019. |", file=sys.stderr) + print("=========================================\n", file=sys.stderr) + + print("Please use the Shell or Powershell installer instead.\n", file=sys.stderr) + + print("Install Deno via Shell script:", file=sys.stderr) + print(" $ curl -fL https://deno.land/x/install/install.sh | sh\n", file=sys.stderr) + + print("Install Deno via PowerShell script:", file=sys.stderr) + print(" > iex (iwr https://deno.land/x/install/install.ps1)\n", file=sys.stderr) + bin_dir = deno_bin_dir() exe_fn = os.path.join(bin_dir, "deno")