diff --git a/dodo.py b/dodo.py index 187b3e4..3e0f87d 100644 --- a/dodo.py +++ b/dodo.py @@ -10,12 +10,18 @@ def task_pip(): - return { - "actions": [ + actions = [ "pip-compile --output-file=requirements.txt requirements.in", "pip-sync", "sed -i -e '/macfsevents/d' requirements.txt", - ], + ] + + import platform + if platform.system() == 'Darwin': + actions.append("sed -i '/pyinotify/,$d' requirements.txt") + + return { + "actions": actions, "file_dep": ["requirements.in", "dodo.py"], "targets": ["requirements.txt"], }