Skip to content

Commit 46c6c2f

Browse files
authored
Merge pull request #49 from fonttools/chrome/m95-py3
update libskia to chrome/m95 branch, do not require python2 to build from source
2 parents abb8a13 + f72d879 commit 46c6c2f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
# Use this to specify the directory where your pre-built skia is located
2323
SKIA_LIBRARY_DIR = os.environ.get("SKIA_LIBRARY_DIR")
2424

25-
26-
# Building libskia with its 'gn' build tool requires python2; if 'python2'
27-
# executable is not in your $PATH, you can export PYTHON2_EXE=... before
28-
# running setup.py script.
29-
PYTHON2_EXE = os.environ.get("PYTHON2_EXE", "python2")
30-
3125
# check if minimum required Cython is available
3226
cython_version_re = re.compile('\s*"cython\s*>=\s*([0-9][0-9\w\.]*)\s*"')
3327
with open("pyproject.toml", "r", encoding="utf-8") as fp:
@@ -249,7 +243,7 @@ def build_skia(build_base):
249243
log.info("building 'skia' library")
250244
build_dir = os.path.join(build_base, skia_dir)
251245
build_skia_py = os.path.join(skia_builder_dir, "build_skia.py")
252-
build_cmd = [PYTHON2_EXE, build_skia_py, build_dir]
246+
build_cmd = [sys.executable, build_skia_py, build_dir]
253247

254248
env = os.environ.copy()
255249
if sys.platform == "win32":

0 commit comments

Comments
 (0)