No it is compulsory only to companies whose shares are publicly traded or companies who are in the process of issuing shares to public. However you may publish EPS in any other company's accounts. Even if you are not required to present EPS figures, in case you opt to present an EPS figure it has to be calculated in accordance with IAS 33