To generate a different setup.py with different configs is the whole purpose of this pull request. The setup.py IS generated by the deploy command anyway, based on an hardcoded template.

However I notice now that the deploy command has been moved to scrapyd.  Any chance this would be integrated in scrapyd?