Move mac arch calculation to separate function
Move mac arch calculation to separate function

sbidoul/pip,pfmoore/pip,pfmoore/pip,xavfernandez/pip,xavfernandez/pip,xavfernandez/pip,pradyunsg/pip,pradyunsg/pip,sbidoul/pip,pypa/pip,pypa/pip