From 884e5c020ceed81519980e49f1b9e31f3355648c Mon Sep 17 00:00:00 2001 From: K Kollmann Date: Tue, 13 Oct 2020 00:02:59 +0200 Subject: [PATCH] update, format Docstrings, stdout msgs --- setup.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 544ffd069..cf16c1dd6 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ #!/usr/bin/env python +""" +This file will first try to import setuptools, +then reach for the embedded ez_setup.py file (or the ez_setup package), +and fail with a message if neither are successful. +""" -# This will try to import setuptools. If not here, it will reach for the embedded -# ez_setup (or the ez_setup package). If none, it fails with a message import sys from codecs import open @@ -15,9 +18,10 @@ ez_setup.use_setuptools() except ImportError: raise ImportError( - "MoviePy could not be installed, probably because" - " neither setuptools nor ez_setup are installed on this computer." - "\nInstall setuptools ([sudo] pip install setuptools) and try again." + "MoviePy could not be installed, probably because " + "neither setuptools nor ez_setup are installed on this computer.\n" + "Install setuptools with $ (sudo) pip install setuptools and " + "try again." ) @@ -43,8 +47,8 @@ def run_tests(self): import pytest except ImportError: raise ImportError( - "Running tests requires additional dependencies." - "\nPlease run (pip install moviepy[test])" + "Running tests requires additional dependencies.\n" + "Please run $ pip install moviepy[test]" ) errno = pytest.main(self.pytest_args.split(" "))