You shouldn't import anything outside of the standard library from setup.py, since requirements aren't installed yet:
$ pip install -U git+https://github.com/domainaware/checkdmarc.git
Collecting git+https://github.com/domainaware/checkdmarc.git
Cloning https://github.com/domainaware/checkdmarc.git to /tmp/pip-oNfdrY-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-oNfdrY-build/setup.py", line 18, in <module>
from checkdmarc import __version__
File "checkdmarc.py", line 17, in <module>
import publicsuffix
ImportError: No module named publicsuffix
----------------------------------------
You shouldn't import anything outside of the standard library from
setup.py
, since requirements aren't installed yet: