From 6e52b42f567d3e63660208cfa713f8440e0cd22b Mon Sep 17 00:00:00 2001 From: j Date: Sat, 21 Dec 2019 20:05:04 +0200 Subject: [PATCH] update installation instructions --- README.md | 29 +++++++++++++++++++++++++++++ pandora_client/__init__.py | 21 --------------------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 36f918b..f7860a7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,34 @@ # pandora_client - python client and libary to access a pan.do/ra instances +Documentation at: https://code.0x2620.org/0x2620/pandora_client/wiki + +## Installation + +### Linux + +- install dependencies + + sudo apt install python3 python3-pip git ffmpeg ffmpeg2theora + +- install pandora_client + + sudo pip3 install pandora_client + + +### macOS + +- install brew (https://brew.sh/) +- install dependencies + + brew instlal python3 + brew instlal git + brew install libvpx libvorbis + brew install ffmpeg --with-libvpx --with-libvorbis --with-libopus + +- install pandora_client + + pip3 install pandora_client + ## pandora client example: diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 04dc9d0..7332874 100755 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -470,27 +470,6 @@ class Client(object): self._config['url'] = url self.save_config() print("\nconfiguration updated.") - self.install_programs() - - def install_programs(self, args=[]): - update = 'update' in args - # install required programs - if sys.platform == 'darwin': - osext = 'macosx' - elif sys.platform.startswith('win'): - osext = 'exe' - else: - osext = 'linux' - bindir = os.path.join(utils.basedir(), 'bin') - ox.makedirs(bindir) - for p in ('ffmpeg', 'ffmpeg2theora'): - path = os.path.join(bindir, p) - if sys.platform.startswith('win'): - p += '.exe' - if not os.path.exists(path) or update: - print("installing %s in %s" % (p, bindir)) - ox.net.save_url('http://firefogg.org/bin/%s.%s' % (p, osext), path, True) - os.chmod(path, 0o755) def add_volume(self, args): usage = "Usage: %s add_volume name path" % sys.argv[0]