The major ecological determinants are temperature and humidity, and the availability of suitable breeding substrates. For this reason this fly is absent from extremes of latitude and altitude and from deserts. It is otherwise very catholic in its distribution.
My students attribute any thing happening to our native fly cultures in Mumbai (India) 18° 55' N, 72° 54' E schools and colleges to temperature (!) and ask for temperature controlled labs, a virtual impossibility and according to me , unnecessary. Right now (12:59) the temperature is shown as 33 degree centigrade. I suspect fruit flies to be around in shades, perhaps.