By cyclization of 4-(1-methyl-2-oxo-1,2,3,4-tetrahydroquinolin-6-yl)-4-oxobutanoic acid (I) with hydrazine in hot DMF.