changeset 39613:96bffce40f5b

setup: exclude vendored futures package on Python 3 The vendored future can't live on Python 3.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 14 Sep 2018 22:23:02 +0900
parents 053aa673947f
children a2880ac67ee0
files setup.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Thu Sep 13 11:08:08 2018 -0400
+++ b/setup.py	Fri Sep 14 22:23:02 2018 +0900
@@ -818,8 +818,6 @@
             'mercurial.thirdparty.attr',
             'mercurial.thirdparty.cbor',
             'mercurial.thirdparty.cbor.cbor2',
-            'mercurial.thirdparty.concurrent',
-            'mercurial.thirdparty.concurrent.futures',
             'mercurial.thirdparty.zope',
             'mercurial.thirdparty.zope.interface',
             'mercurial.utils',
@@ -832,6 +830,9 @@
             'hgext.largefiles', 'hgext.lfs', 'hgext.narrow',
             'hgext.zeroconf', 'hgext3rd',
             'hgdemandimport']
+if sys.version_info[0] == 2:
+    packages.extend(['mercurial.thirdparty.concurrent',
+                     'mercurial.thirdparty.concurrent.futures'])
 
 common_depends = ['mercurial/bitmanipulation.h',
                   'mercurial/compat.h',