Deprecate Python installer (#42)

This commit is contained in:
Mark Tiedemann 2019-02-16 00:51:30 +01:00 committed by Ryan Dahl
parent 1cd5d225fd
commit d35d01b705
2 changed files with 13 additions and 12 deletions

View file

@ -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

View file

@ -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")