from typing import List


def int_version(name: str, version: str) -> List[int]:
    """splits the version into a tuple of integers"""
    sversion = version.split('-')[0].split('+')[0].split('a')[0].split('b')[0].split('rc')[0]
    #numpy
    #scipy
    #matplotlib
    #qtpy
    #vtk
    #cpylog
    #pyNastran
    # '1.20.0rc1'
    # '1.4.0+dev.8913610a0'
    # matplotlib 3.1rc1
    # matplotlib 3.5.5b1

    try:
        return [int(val) for val in sversion.split('.')]
    except ValueError:
        raise SyntaxError('cannot determine version for %s %s' % (name, sversion))