summarylogtreecommitdiffstats
path: root/typing-module-py35+.patch
blob: fec7edd11276c32bc835a21ca8d3e05bb2adb937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 34346a8ac129047c8ba345562a78c74a9bae8096 Mon Sep 17 00:00:00 2001
From: Julien Schueller <schueller@phimeca.com>
Date: Tue, 23 May 2017 09:33:45 +0200
Subject: [PATCH] Do not require typing module for python>=3.5

pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by Sphinx
---
 setup.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 95bb3778f..4544ca3b0 100644
--- a/setup.py
+++ b/setup.py
@@ -51,10 +51,14 @@
     'alabaster>=0.7,<0.8',
     'imagesize',
     'requests>=2.0.0',
-    'typing',
     'setuptools',
     'sphinxcontrib-websupport',
 ]
+
+# this is a backport to versions older than 3.5
+if sys.version_info < (3, 5):
+    requires.append('typing')
+
 extras_require = {
     # Environment Marker works for wheel 0.24 or later
     ':sys_platform=="win32"': [