[MacPorts] #40723: py27-pytest should depend on py27-py (was: py27-pytest does not install py27-py)

MacPorts noreply at macports.org
Thu Oct 10 05:54:36 PDT 2013


#40723: py27-pytest should depend on py27-py
-----------------------------+------------------------
  Reporter:  calvin.giles@…  |      Owner:  stromnov@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.2.0
Resolution:                  |   Keywords:
      Port:  py-pytest       |
-----------------------------+------------------------
Changes (by macsforever2000@…):

 * keywords:  py27-py =>
 * owner:  macports-tickets@… => stromnov@…
 * port:  py27-pytest => py-pytest


Old description:

> 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.

New description:

 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.

--

Comment:

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

-- 
Ticket URL: <https://trac.macports.org/ticket/40723#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list