The recent update of py-tornado [0] seems to rely on py-futures, which is
currently listed in Makefile as TEST_DEPENDS.

Issue has been found as spyder errors out upon start with:

Traceback (most recent call last):
  File "/usr/local/bin/spyder", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
3241, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
3225, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
3254, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
583, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'futures' distribution was not found 
and is required by tornado


I grepped the source code of py-tornado and noticed that
concurrent.futures is imported at several places. Issue is easily fixed
by moving py-futures to RUN_DEPENDS.

OK?

[0] https://marc.info/?l=openbsd-ports-cvs&m=155637555022069&w=2

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/py-tornado/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile    28 Apr 2019 20:52:00 -0000      1.20
+++ Makefile    8 May 2019 19:00:26 -0000
@@ -6,7 +6,7 @@ COMMENT =               scalable, non-blocking web se
 MODPY_EGG_VERSION =    5.1.1
 DISTNAME =             tornado-${MODPY_EGG_VERSION}
 PKGNAME =              py-${DISTNAME}
-REVISION =             0
+REVISION =             1
 
 CATEGORIES =           www
 
@@ -30,9 +30,9 @@ FLAVOR ?=
 .if !${FLAVOR:Mpython3}
 RUN_DEPENDS +=         devel/py-backports-abc \
                        devel/py-certifi \
+                       devel/py-futures \
                        devel/py-singledispatch
-TEST_DEPENDS +=                devel/py-futures \
-                       devel/py-mock \
+TEST_DEPENDS +=                devel/py-mock \
                        devel/py-twisted
 .endif
 

Reply via email to