Commits

Lars Yencken committed e96874a

Have user install corelocation support explicitly.

Comments (0)

Files changed (1)

 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)
+    ]
+
+corelocation_requires = [
+        'pyobjc==2.4',
+        'pyobjc-core==2.4',
+        'pyobjc-framework-CoreLocation==2.4',
+    ]
 
 setup(
         name='doko',
-        description="Detect location using CoreLocation on OS X.",
+        description="Detect your current location.",
         long_description=open('README.rst').read(),
         url="http://bitbucket.org/larsyencken/doko/",
         version=VERSION,
                 ],
         },
         install_requires=requires,
+        extras_require={
+            'corelocation': corelocation_requires,
+        }
     )