diff --git a/setup.py b/setup.py index 8f13436a..7c467ab3 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,13 @@ library_dirs = [] -REQUIREMENTS = ['cython', 'pypiwin32'] +REQUIREMENTS = ['cython'] + +try: + import win32file +except ImportError: + REQUIREMENTS += ['pypiwin32'] + setup( name='winpty',