diff --git a/setup.py b/setup.py
index 053aa673947f0af7d5176dece016e2ebb7c93847_c2V0dXAucHk=..96bffce40f5b98d3b378c19de2de72fee8653c21_c2V0dXAucHk= 100644
--- a/setup.py
+++ b/setup.py
@@ -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',