Fixed resources management in setup.py
Merge branch 'hotfix-3.2.7'