remove deprecated code from setup.py