Helper functions for setup.py