From 0d4502097bfb7b0192accc3e30ee4b28f97611bb Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 7 Dec 2018 16:17:11 -0500 Subject: [PATCH 1/2] BLD: Require enum34 for Python < 3.4 pandas-dev/pandas#22802 imports `enum`, which was added to the built-ins in Python 3.4. The `enum34` package backports `enum` to earlier Python versions, so this should be a dependency as long as Python 2.7 is still supported. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index cb52db98905d3..94090ad8a55e1 100755 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ def is_platform_windows(): 'install_requires': [ 'python-dateutil >= 2.5.0', 'pytz >= 2011k', + 'enum34; python_version < "3.4"', 'numpy >= {numpy_ver}'.format(numpy_ver=min_numpy_ver), ], 'setup_requires': ['numpy >= {numpy_ver}'.format(numpy_ver=min_numpy_ver)], From f5e0e156cdf022f0ba160af679540719bb0f8032 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Fri, 7 Dec 2018 16:21:54 -0500 Subject: [PATCH 2/2] DOC: Add whatsnew entry --- doc/source/whatsnew/v0.24.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index aa8fbbd9b8dd8..5a3e142fd4bc9 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1579,7 +1579,7 @@ Build Changes - Building pandas for development now requires ``cython >= 0.28.2`` (:issue:`21688`) - Testing pandas now requires ``hypothesis>=3.58``. You can find `the Hypothesis docs here `_, and a pandas-specific introduction :ref:`in the contributing guide `. (:issue:`22280`) -- +- Installing pandas for Python 2.7 now requires ``enum34``. Other ^^^^^