The methylation of ethyl 3-pyrazinyl-3-oxopropionate (I) with methyl iodide and K2CO3 in acetone gives ethyl 2-methyl-3-pyrazinyl-3-oxopropionate (II), which is then treated with P2S5 in refluxing toluene.