refactor package selection in setup.py