mirror of
https://github.com/danbulant/deno_install
synced 2026-06-18 14:01:26 +00:00
Deprecate Python installer (#42)
This commit is contained in:
parent
1cd5d225fd
commit
d35d01b705
2 changed files with 13 additions and 12 deletions
12
README.md
12
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
|
||||
|
|
|
|||
13
install.py
13
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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue