release 0.1 updates
diff --git a/pyparallel/setup.py b/pyparallel/setup.py
index 64bda13..929277a 100644
--- a/pyparallel/setup.py
+++ b/pyparallel/setup.py
@@ -1,6 +1,16 @@
#!/usr/bin/env python
from distutils.core import setup, Extension
+import os
+if os.name == 'nt':
+ ext_modules =[
+ Extension('_pyparallel',
+ sources=['src/win32/_pyparallel.c'],
+ )
+ ]
+else:
+ ext_modules = None
+
setup (name = "pyparallel",
description="Python Parallel Port Extension",
version="0.1",
@@ -10,10 +20,5 @@
packages=['parallel'],
license="Python",
long_description="Python Parallel Port Extension for Win32, Linux, BSD",
-
- ext_modules = [
- Extension('_pyparallel',
- sources=['src/win32/_pyparallel.c', 'src/win32/loaddrv.c'],
- )
- ]
+ ext_modules = ext_modules
)