From f619f1dd0746159b60bd3449d9de863f1231bc97 Mon Sep 17 00:00:00 2001
From: Marc Bonnici <marc.bonnici@arm.com>
Date: Fri, 5 Jul 2019 11:05:43 +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 757e450..0583e3f 100644
--- a/setup.py
+++ b/setup.py
@@ -85,8 +85,10 @@ params = dict(
         'wrapt',  # Basic for construction of decorator functions
         'future', # Python 2-3 compatibility
         'enum34;python_version<"3.4"', # Enums for Python < 3.4
-        'pandas',
-        'numpy',
+        'numpy<=1.16.4; python_version<"3"',
+        'numpy; python_version>="3"',
+        'pandas<=0.24.2; python_version<"3"',
+        'pandas; python_version>"3"',
     ],
     extras_require={
         'daq': ['daqpower'],