import pkg_resources
from pkg_resources import DistributionNotFound, VersionConflict

# dependencies can be any iterable with strings, 
# e.g. file line-by-line iterator
dependencies = [
    'argparse >= 1.2.1',
    'defusedxml >= 0.4.1',
    'fonttools >= 3.0',
    'tabulate >= 0.7.5',
    'lxml >= 3.0.0',
    'six >= 1.0.0'
]

# here, if a dependency is not met, a DistributionNotFound or VersionConflict
# exception is thrown. 
pkg_resources.require(dependencies)
import fontforge
