diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..74d4305 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +-e git+https://github.com/Janhouse/SocksiPy#egg=SocksiPy-digsby diff --git a/setup.py b/setup.py index 1567d23..d611c85 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,16 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup +from subprocess import call + +# A bit hacky but this needs to be done to install +# any dependency in VCS and non PyPi location as part of +# one `pip install` command +with open('./requirements.txt') as f: + deps = f.read().splitlines() + + for dep in deps: + call(['pip', 'install'] + dep.split(' ')) setup( name = 'tespeed', diff --git a/tespeed.py b/tespeed.py index f586f47..21087e6 100755 --- a/tespeed.py +++ b/tespeed.py @@ -8,7 +8,7 @@ args.suppress=None args.store=None -from SocksiPy import socks +import socks import socket # Magic!