45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
commit d0693ba9f2686ffa46328da129ffef345258fa12
|
|
Author: Peng Wu <alexepico@gmail.com>
|
|
Date: Thu Jul 26 15:08:41 2018 +0800
|
|
|
|
Use python2
|
|
|
|
diff --git a/SConstruct b/SConstruct
|
|
index 01b5cca..1c4d641 100644
|
|
--- a/SConstruct
|
|
+++ b/SConstruct
|
|
@@ -299,11 +299,11 @@ def CheckPKG(context, name):
|
|
|
|
def CheckPython(context):
|
|
context.Message('Checking for Python library...')
|
|
- ret = context.TryAction('python-config --prefix')[0]
|
|
+ ret = context.TryAction('python2-config --prefix')[0]
|
|
context.Result(ret)
|
|
if ret:
|
|
- context.env.MergeFlags(['!python-config --includes',
|
|
- '!python-config --libs'])
|
|
+ context.env.MergeFlags(['!python2-config --includes',
|
|
+ '!python2-config --libs'])
|
|
return ret
|
|
|
|
|
|
diff --git a/python/pinyin_info_gen.py b/python/pinyin_info_gen.py
|
|
index ffb5874..3285876 100755
|
|
--- a/python/pinyin_info_gen.py
|
|
+++ b/python/pinyin_info_gen.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/python2
|
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
|
#
|
|
diff --git a/python/quanpin_trie_gen.py b/python/quanpin_trie_gen.py
|
|
index 5d516a1..c6ab59e 100755
|
|
--- a/python/quanpin_trie_gen.py
|
|
+++ b/python/quanpin_trie_gen.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/python2
|
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
|
#
|