Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ecadcc

Browse files
author
huguesv
committed
Azure#360 Installing azure on Python 3 should not install futures
1 parent e32f803 commit 2ecadcc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

setup.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python
22

33
#-------------------------------------------------------------------------
44
# Copyright (c) Microsoft. All rights reserved.
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#--------------------------------------------------------------------------
17-
17+
import sys
1818
from distutils.core import setup
1919

2020
# To build:
@@ -29,6 +29,10 @@
2929
# To upload:
3030
# python setup.py sdist upload
3131

32+
reqs = ['python-dateutil']
33+
if sys.version_info < (3,0):
34+
reqs.append('futures')
35+
3236
setup(name='azure',
3337
version='0.11.0',
3438
description='Microsoft Azure client APIs',
@@ -51,8 +55,7 @@
5155
'azure.servicebus',
5256
'azure.storage',
5357
'azure.servicemanagement'],
54-
install_requires=['python-dateutil',
55-
'futures'],
58+
install_requires=reqs,
5659
extras_require = {
5760
'get_certificate_from_publish_settings' : ['pyopenssl']
5861
}

0 commit comments

Comments
 (0)