Skip to content

Commit

Permalink
Merge pull request #17 from andfoy/pywin32_dep
Browse files Browse the repository at this point in the history
PR: Add pypiwin32 dependency only if installing using pip
  • Loading branch information
andfoy authored Jun 19, 2017
2 parents 4adf6d2 + 1ac038e commit 4846cbe
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 4846cbe

Please sign in to comment.