Skip to content

Commit

Permalink
build: Use LooseVersion rather than StrictVersion (#13)
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
DeeDeeG authored and Brad Erickson committed Jun 3, 2017
1 parent bab88dd commit 9acc7fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scfbuild/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import sys
import tempfile
import time
from distutils.version import StrictVersion
from distutils.version import LooseVersion
import xml.etree.ElementTree as ET

import fontTools
Expand All @@ -28,7 +28,7 @@
logging.basicConfig(level=logging.INFO)

# Support for SVG tables was added to fontTools in version 2.5
if StrictVersion('2.5') > StrictVersion(fontTools.version):
if LooseVersion('2.5') > LooseVersion(fontTools.version):
logger.exception("The FontTools module version must be 2.5 or higher.")
sys.exit(1)
# todo: Check FontForge version
Expand Down

0 comments on commit 9acc7fc

Please sign in to comment.