Skip to content

Commit

Permalink
Add pypiwin32 dependency only if installing using pip
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jun 19, 2017
1 parent b63ab78 commit 1ac038e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
library_dirs = []


REQUIREMENTS = ['cython', 'pypiwin32']
REQUIREMENTS = ['cython']

try:
import win32file
except ImportError:
REQUIREMENTS += ['pypiwin32']


setup(
name='winpty',
Expand Down

0 comments on commit 1ac038e

Please sign in to comment.