From 0074ceca3062efd0115e33ea0a3a53ca51050a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Tue, 5 May 2015 16:57:07 +0300 Subject: [PATCH] Only setup_require nose if test command is actually run. As seen here: https://bitbucket.org/jaraco/jaraco.test/src/ef8efc762486028bf46d09861799e70414a48d01/setup.py?at=default#cl-13 Replaces #34. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 328f7e1..c33f417 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python - +import sys from setuptools import setup, find_packages, Extension VERSION = (0, 7, 0) @@ -31,7 +31,7 @@ "-DLZ4_VERSION=\"r119\"", ]) ], - setup_requires=["nose>=1.0"], + setup_requires=["nose>=1.0"] if 'test' in sys.argv else [], test_suite = "nose.collector", classifiers=[ 'Development Status :: 5 - Production/Stable',