From 95641f4026e0c1d5ed083e1ae6fe9aed30558a34 Mon Sep 17 00:00:00 2001 From: ines Date: Fri, 20 Jul 2018 21:08:29 +0200 Subject: [PATCH] Only install pathlib backport on Python < 3.4 --- requirements.txt | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 33fc5ea10..8f5aa15d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ cython>=0.24,<0.28.0 -pathlib numpy>=1.7 cymem>=1.30,<1.32 preshed>=1.0.0,<2.0.0 @@ -12,3 +11,4 @@ regex==2017.4.5 requests>=2.13.0,<3.0.0 pytest>=3.6.0,<4.0.0 mock>=2.0.0,<3.0.0 +pathlib==1.0.1; python_version < "3.4" diff --git a/setup.py b/setup.py index c94928d6f..83d894950 100755 --- a/setup.py +++ b/setup.py @@ -192,11 +192,11 @@ def setup_package(): 'preshed>=1.0.0,<2.0.0', 'thinc==6.10.3.dev0', 'plac<1.0.0,>=0.9.6', - 'pathlib', 'ujson>=1.35', 'dill>=0.2,<0.3', 'regex==2017.4.5', - 'requests>=2.13.0,<3.0.0'], + 'requests>=2.13.0,<3.0.0', + 'pathlib==1.0.1; python_version < "3.4"'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console',