F2PY future plans

  1. Typing improvements, union of type with int | str requires Python 3.10+
  2. rules.py settings generation in f2pyarg.py
  3. Improve F2PY's help message.

Post distutils deprecation changes

  • Handle --opt, --arch, --f77flags, --f90flags in more efficient way.
    • Currently they are passed directly to the Fortran compiler.
    • Ralf suggests that handling f77 and f90 seperately and providing compiler paths is unnecessary in his comment here - https://github.com/numpy/numpy/pull/22225#discussion_r966761955
      • I agree with him and suggest that F2PY should deprecate --f77exec --f90exec --f77args --f90args