[MacPorts] #74404: py314-isort @9.0.1_0: missing dependency on py314-mypy_extensions

MacPorts noreply at macports.org
Sat Sep 5 03:20:09 UTC 2026


#74404: py314-isort @9.0.1_0: missing dependency on py314-mypy_extensions
-------------------------------+-------------------------
 Reporter:  need-tech-support  |      Owner:  reneeotten
     Type:  defect             |     Status:  assigned
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.12.6
 Keywords:                     |       Port:  py314-isort
-------------------------------+-------------------------
 After upgrading MacPorts ports, pylint 4.0.8 fails to load its imports
 checker because `mypy_extensions` is not installed.

 The failure is:

 {{{
 Problem importing module imports.py: No module named 'mypy_extensions'
 }}}

 This subsequently causes pylint to report valid imports-checker
 configuration options as unrecognized:

 {{{
 E0015: Unrecognized option found: allow-any-import-level, allow-reexport-
 from-package, allow-wildcard-with-all, deprecated-modules, ext-import-
 graph, import-graph, int-import-graph, known-standard-library, known-
 third-party, preferred-modules (unrecognized-option)
 }}}

 Environment:

 {{{
 macOS: 26.6.2
 MacPorts: 2.12.6

 pylint 4.0.8
 astroid 4.0.4
 Python 3.14.7
 py314-isort @9.0.1_0
 }}}

 Upstream isort 9.0.1 declares the following runtime dependency:

 {{{
 mypy-extensions>=1.1.0
 }}}

 The current MacPorts `py-isort` Portfile does not declare the
 corresponding `py${python.version}-mypy_extensions` dependency.

 Installing it manually fixes the problem:

 {{{
 sudo port install py314-mypy_extensions
 }}}

 After installing `py314-mypy_extensions`, pylint loads its imports checker
 normally and the E0015 errors disappear.

 The Portfile appears to need a dependency equivalent to:

 {{{
 depends_lib-append
 port:py${python.version}-mypy_extensions
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74404>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list