convert buildPackage to python script so it can get version info from setup.py as well