From e3ebea603362fe89eaea2acb2a74c8e765407946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sun, 24 Jan 2016 14:52:18 +0100 Subject: [PATCH] Distribution: Fix broken setup_requires The `pyyaml` dependency is needed in `install_requires` but also in `setup_requires`, because running `setup.py` requires importing `yamllint`, which itself imports `yaml`. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 19d572d..bee7750 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,8 @@ setup( scripts=['bin/yamllint'], package_data={'yamllint': ['conf/*.yml']}, install_requires=['pyyaml'], + setup_requires=['pyyaml'], # importing `yamllint` (for APP_NAME etc.) + # requires importing `yaml` tests_require=['nose'], test_suite='nose.collector', )