update common setup.py for packaging