setup.py: replace call to deprecated function

3 jobs for master in 8 minutes and 1 second
Status Name Job ID Coverage
  Test
passed python2 #141370

00:00:22

passed python3 #141371

00:01:41

 
  Deploy
passed create conda dev package #141372

00:06:19