Hypernuclear production in the $(K^−, π^−)$ reaction