Opened 11 years ago

Closed 11 years ago

#40723 closed defect (fixed)

py27-pytest should depend on py27-py

Reported by: calvin.giles@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: py-pytest

Description (last modified by mf2k (Frank Schima))

pytest has a hard dependency on py. After running

sudo port install py27-pytest

and running py.test, the following error is seen:

Traceback (most recent call last):
  File "/opt/local/bin/py.test-2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2793, in <module>
    working_set.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 673, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 576, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: py>=1.4.12

This can be solved by running sudo port install py27-py.

py27-py should be a dependency of py27-pytest.

Change History (2)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: py27-py removed
Owner: changed from macports-tickets@… to stromnov@…
Port: py-pytest added; py27-pytest removed
Summary: py27-pytest does not install py27-pypy27-pytest should depend on py27-py

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers py27-pytest).

comment:2 Changed 11 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Fixed at r112281.

Note: See TracTickets for help on using tickets.