Skip to content

Commit

Permalink
Add requires pywin32 only for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
asettouf committed Sep 26, 2017
1 parent 75186b3 commit a735cf9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from distutils.core import setup
from os.path import exists
from platform import system

requires = []
if system == "Windows":
requires = ["pypiwin32"]

setup(
name = "fsmonitor",
Expand All @@ -11,8 +16,6 @@
author_email = "[email protected]",
licence="MIT",
url = "http://github.com/shaurz/fsmonitor",
install_requires=[
'pypiwin32',
],
install_requires=requires,
packages = ["fsmonitor"],
)

0 comments on commit a735cf9

Please sign in to comment.