1. Richo Healey
  2. doko

Source

doko / setup.py

Diff from to

File setup.py

 Package information for doko package.
 """
 
+import sys
 from setuptools import setup
 
 VERSION = '0.1.0'
 
+requires = [
+        'BeautifulSoup==3.2.1',
+        'requests==0.14.0',
+]
+if sys.platform == 'sys':
+    for package in ('pyobjc==2.4', 'pyobjc-core==2.4', 'pyobjc-framework-CoreLocation==2.4'):
+        requires.append(package)
+
 setup(
         name='doko',
         description="Detect location using CoreLocation on OS X.",
                     'doko = doko:main',
                 ],
         },
-        install_requires=[
-            'pyobjc==2.4',
-            'pyobjc-core==2.4',
-            'pyobjc-framework-CoreLocation==2.4',
-            'BeautifulSoup==3.2.1',
-            'requests==0.14.0',
-        ],
+        install_requires=requires,
     )