you should add

pkg_setup() {
   use python && python_single-r1_pkg_setup
   use fortran && fortran-2_pkg_setup
}