lyda / chkcrontab

A tool for checking system crontab files (/etc/crontab and /etc/cron.d normally) for errors and common mistakes.
Other
59 stars 22 forks source link

setup.py fails when there is no unittest2 installed yet with python 2.6 #6

Closed zsoldosp closed 7 years ago

zsoldosp commented 10 years ago

https://github.com/lyda/chkcrontab/blob/master/setup.py#L29

My suggestion to fix this is to

  1. add an install_requires or similar argument containing the unittest2 package for python < 2.7
  2. move the import to inside the method where it's used
zsoldosp commented 7 years ago

thanks!