]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Install deps at setup time too (so that docs can build)
authorMenno Smits <menno@freshfoo.com>
Fri, 23 Jan 2015 09:20:46 +0000 (22:20 +1300)
committerMenno Smits <menno@freshfoo.com>
Fri, 23 Jan 2015 09:20:46 +0000 (22:20 +1300)
setup.py

index f9b34893e80d16be2cd6080cbbe1425a2b78da8f..176dd60da128e3d008e4ac273cbd40c02336b802 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,12 @@ class TestDiscoverCommand(TestCommand):
             module = None
         unittest.main(argv=['', 'discover'], module=module)
 
+deps = [
+    'six',
+    'pyopenssl',
+    'service_identity'
+],
+
 test_deps = ['mock==0.8.0']
 if IS_PY_26_OR_OLDER:
     test_deps.append('unittest2')
@@ -70,12 +76,9 @@ setup(name='IMAPClient',
       download_url='http://freshfoo.com/projects/IMAPClient/IMAPClient-%s.zip' % info['version'],
       packages=find_packages(),
       package_data=dict(imapclient=['examples/*.py']),
+      setup_requires=deps,
+      install_requires=deps,
       tests_require=test_deps,
-      install_requires=[
-        'six',
-        'pyopenssl',
-        'service_identity'
-      ],
       description="Easy-to-use, Pythonic and complete IMAP client library",
       long_description=desc,
       classifiers=[