summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Winter <phw@nymity.ch>2020-05-15 10:43:25 -0700
committerAna Custura <ana@netstat.org.uk>2020-05-29 14:56:02 +0100
commitde26da351d859b64a35b81eb2d07dbf325a86960 (patch)
treece7100148de0e3ba4ff6cfc3ccb941a33ba72244
parentf41774d4bf9a9f2c53eb705591dd5574ca48ee41 (diff)
Add install_requires to setup.py.
To make this work, we also had to replace distutils with setuptools because distutils does not understand the install_requires keyword. Co-authored-by: Ana Custura <ana@netstat.org.uk>
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 41bba2f..694ab62 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
-from distutils.core import setup
+from setuptools import setup
+
+with open('requirements.txt') as f:
+ install_requires = f.readlines()
setup(name='OnionPerf',
version='0.2.pre',
@@ -9,4 +12,5 @@ setup(name='OnionPerf',
url='https://github.com/robgjansen/onionperf/',
packages=['onionperf'],
scripts=['onionperf/onionperf'],
+ install_requires=install_requires
)