[MacPorts] #68878: py310-astropy is incompatible with py310-cython

MacPorts noreply at macports.org
Mon Dec 18 10:52:27 UTC 2023


#68878: py310-astropy is incompatible with py310-cython
----------------------------+--------------------
  Reporter:  cquike         |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  py310-astropy  |
----------------------------+--------------------

Comment (by cquike):

 I think that the situation is a bit unfortunate since an installation from
 an empty macports yields an error:

 {{{
 Error: Failed to activate py310-cython: Image error:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/cygdb is
 being used by the active py310-cython-devel port.  Please deactivate this
 port first, or use 'port -f activate py310-cython' to force the
 activation.
 }}}

 This is because both {{{py310-cython}}} and {{{py310-cython-devel}}} are
 being installed: the first one is a dependency of numpy, which is a
 dependency of astropy and the second as a direct dependency of astropy.

 If the workaround is added then indeed it works. However this is not
 evident from the failure and users will have to scratch their heads to
 solve the situation.
 Additionally, at least in our case, we include the installation of astropy
 as part of automatic CI procedures which are currently broken.

 I don't know how macports handles this kind of transitions between major
 software versions, but I can imagine that a better mechanism can be
 devised to avoid breakage of package installations.

 Would it be a sensible thing to create a {{{py-astropy-devel}}} port that
 depends on the new cython version? Other dependants of cython can follow a
 similar approach. Once there is enough confidence that the dependents are
 fine with the new version, then cython and all the dependant ports can
 move to the new version. That of course require some non-trivial
 coordination between ports, but the current status-quo is to have broken
 installations.

-- 
Ticket URL: <https://trac.macports.org/ticket/68878#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list