[enh][fix] https rewrite rules added to setup.py