[MacPorts] #70562: py310-cython-compat 0.29.37_0.darwin_23.arm64: no module named Cython

MacPorts noreply at macports.org
Thu Aug 15 02:22:26 UTC 2024


#70562: py310-cython-compat 0.29.37_0.darwin_23.arm64: no module named Cython
----------------------------------+--------------------
  Reporter:  areilly              |      Owner:  (none)
      Type:  defect               |     Status:  new
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.10.0
Resolution:                       |   Keywords:
      Port:  py310-cython-compat  |
----------------------------------+--------------------
Changes (by jmroot):

 * milestone:  MacPorts Future =>


Comment:

 As the port description says, this exists mainly "for the use of ports
 that are not compatible with the current version". It's not really
 intended to be used from outside of Portfiles. It's unfortunately not
 possible to install multiple versions of a python module side-by-side, so
 to use this older version requires prepending to sys.path, usually via
 PYTHONPATH. See for example what py-h5py or py-yaml does:
 {{{
 depends_build-append \
     port:py${python.version}-cython-compat
 set compat_path [string replace ${python.pkgd} 0 [string length
 ${python.prefix}]-1 ${prefix}/lib/py${python.version}-cython-compat]
 build.env-append    PYTHONPATH=${compat_path}
 }}}

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


More information about the macports-tickets mailing list