Skip to content

Commit

Permalink
update, format Docstrings, stdout msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
keikoro authored and tburrows13 committed Oct 12, 2020
1 parent 5394d4f commit 884e5c0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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."
)


Expand All @@ -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(" "))
Expand Down

0 comments on commit 884e5c0

Please sign in to comment.