gentoo/dev-python/statsmodels/files/statsmodels-0.6.1-pandas-0.17.0.patch
Justin Lecher a6a6d81a75
dev-python/statsmodels: Add python3.5 support
Fix test for latest versions of pandas and numpy

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-10-21 15:40:24 +02:00

31 lines
1.0 KiB
Diff

setup.py | 2 +-
statsmodels/tools/testing.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 1a7da9a..a6d1b33 100644
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,7 @@ def check_dependency_versions(min_versions):
(spversion, min_versions['scipy']))
try:
- from pandas.version import short_version as pversion
+ from pandas import __version__ as pversion
except ImportError:
install_requires.append('pandas')
else:
diff --git a/statsmodels/tools/testing.py b/statsmodels/tools/testing.py
index 1fde1de..92e77fc 100644
--- a/statsmodels/tools/testing.py
+++ b/statsmodels/tools/testing.py
@@ -17,7 +17,7 @@ def strip_rc(version):
def is_pandas_min_version(min_version):
'''check whether pandas is at least min_version
'''
- from pandas.version import short_version as pversion
+ from pandas import __version__ as pversion
return StrictVersion(strip_rc(pversion)) >= min_version