only validate package_data when it might be used

closes #5046
run check_package_data as part of build_py

rather than explicitly in setup.py
Merge pull request #5047 from minrk/check-pkg-data

only validate package_data when it might be used