mirror of https://github.com/progval/irctest.git
Use setuptools instead of distutils in setup.py, so it installs dependencies.
This commit is contained in:
parent
6547147b69
commit
e6a00c9055
6
setup.py
6
setup.py
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from distutils.core import setup
|
from setuptools import setup
|
||||||
|
|
||||||
if sys.version_info < (3, 4, 0):
|
if sys.version_info < (3, 4, 0):
|
||||||
sys.stderr.write("This script requires Python 3.4 or newer.")
|
sys.stderr.write("This script requires Python 3.4 or newer.")
|
||||||
|
@ -10,7 +10,7 @@ if sys.version_info < (3, 4, 0):
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fd:
|
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fd:
|
||||||
requirements = [x.split('#')[0].strip().replace(' >', ' (>')+')'
|
requirements = [x.split('#')[0]
|
||||||
for x in fd.readlines()]
|
for x in fd.readlines()]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
@ -48,7 +48,7 @@ setup(
|
||||||
'irctest.irc_utils',
|
'irctest.irc_utils',
|
||||||
'irctest.server_tests',
|
'irctest.server_tests',
|
||||||
],
|
],
|
||||||
requires=requirements,
|
install_requires=requirements,
|
||||||
)
|
)
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||||
|
|
Loading…
Reference in New Issue