From 72fd5b513922bbd8e0f9fdce9e8c613816b816c2 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 5 Jul 2019 10:19:47 +0100 Subject: [PATCH] setup.py: Set maximum package version for python2.7 support In the latest versions of panadas and numpy python2.7 support has been dropped therefore restrict the maximum version of these packages. --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index aedb31f9..16a5a263 100755 --- a/setup.py +++ b/setup.py @@ -77,7 +77,8 @@ params = dict( maintainer='ARM Architecture & Technology Device Lab', maintainer_email='workload-automation@arm.com', setup_requires=[ - 'numpy' + 'numpy<=1.16.4; python_version<"3"', + 'numpy; python_version>="3"', ], install_requires=[ 'python-dateutil', # converting between UTC and local time. @@ -89,7 +90,8 @@ params = dict( 'devlib>={}'.format(devlib_version), # Interacting with devices 'louie-latest', # callbacks dispatch 'wrapt', # better decorators - 'pandas>=0.23.0', # Data analysis and manipulation + 'pandas>=0.23.0,<=0.24.2; python_version<"3"', # Data analysis and manipulation + 'pandas>=0.23.0; python_version>"3"', # Data analysis and manipulation 'future', # Python 2-3 compatiblity ], dependency_links=['https://github.com/ARM-software/devlib/tarball/master#egg=devlib-{}'.format(devlib_version)],