Adapted the script to work like pythonocc-core's Travis setup.