mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-06 09:41:19 -04:00
Automatically install platform dependent dependencies
This commit is contained in:
parent
b230dc2016
commit
640cecdece
3 changed files with 11 additions and 17 deletions
17
README.md
17
README.md
|
@ -18,24 +18,13 @@ A scriptable stream downloader for Qobuz, Tidal, Deezer and SoundCloud.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
First, ensure [pip](https://pip.pypa.io/en/stable/installing/) is installed. Then run the following in the command line:
|
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:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
macOS/Linux:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip3 install streamrip simple-term-menu --upgrade
|
pip3 install streamrip --upgrade
|
||||||
```
|
```
|
||||||
|
|
||||||
Windows:
|
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).
|
||||||
|
|
||||||
```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).
|
|
||||||
|
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
|
@ -4,6 +4,3 @@ pathvalidate
|
||||||
requests
|
requests
|
||||||
mutagen
|
mutagen
|
||||||
tqdm
|
tqdm
|
||||||
pycryptodome
|
|
||||||
pick
|
|
||||||
colorama
|
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -9,7 +9,15 @@ def read_file(fname):
|
||||||
|
|
||||||
|
|
||||||
requirements = read_file("requirements.txt").strip().split()
|
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
|
# https://github.com/pypa/sampleproject/blob/main/setup.py
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue