Skip to content
Snippets Groups Projects
Commit fd246fde authored by Mark Haines's avatar Mark Haines
Browse files

Install tox locally if it wasn't already installed when running setup.py test

parent 4f6fa981
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,16 @@ class Tox(Command):
def run(self):
#import here, cause outside the eggs aren't loaded
import tox
try:
import tox
except ImportError:
try:
self.distribution.fetch_build_eggs("tox")
import tox
except:
raise RuntimeError(
"The tests need 'tox' to run. Please install 'tox'."
)
import shlex
args = self.tox_args
if args:
......@@ -75,6 +84,5 @@ setup(
zip_safe=False,
long_description=long_description,
scripts=["synctl"] + glob.glob("scripts/*"),
tests_require=['tox'],
cmdclass={'test': Tox},
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment