Automatically install platform dependent dependencies

This commit is contained in:
nathom 2021-05-14 22:47:35 -07:00
parent b230dc2016
commit 640cecdece
3 changed files with 11 additions and 17 deletions

View File

@ -18,24 +18,13 @@ A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud.
## Installation
First, ensure [pip](https://pip.pypa.io/en/stable/installing/) is installed. Then run the following in the command line:
macOS/Linux:
First, ensure [Python](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installing/) are installed. Then run the following in the command line:
```bash
pip3 install streamrip simple-term-menu --upgrade
pip3 install streamrip --upgrade
```
Windows:
```bash
pip3 install streamrip windows-curses --upgrade
```
If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html).
If you would like to use `streamrip`'s conversion capabilities, download TIDAL videos, or download music from SoundCloud, install [ffmpeg](https://ffmpeg.org/download.html). To download music from YouTube, install [youtube-dl](https://github.com/ytdl-org/youtube-dl#installation).
## Example Usage

View File

@ -4,6 +4,3 @@ pathvalidate
requests
mutagen
tqdm
pycryptodome
pick
colorama

View File

@ -9,7 +9,15 @@ def read_file(fname):
requirements = read_file("requirements.txt").strip().split()
requirements.append("simple-term-menu; platform_system == 'Linux'")
requirements.append("simple-term-menu; platform_system == 'Darwin'")
requirements.append("pick; platform_system == 'Windows'")
# Needed for pick to work
requirements.append("windows-curses; platform_system == 'Windows'")
# required for click colors
# can be removed when click v8.0 is released
requirements.append("colorama; platform_system == 'Windows'")
# https://github.com/pypa/sampleproject/blob/main/setup.py
setup(