commit cd7378a5647d55795521ae34dee0064a812eaac6 Author: vaydheesh Date: Fri Jul 19 18:15:57 2019 +0530 Build only the wrapper diff --git a/apertium/__init__.py b/apertium/__init__.py index a37c683..62295f9 100644 --- a/apertium/__init__.py +++ b/apertium/__init__.py @@ -63,6 +63,7 @@ def update_path_windows() -> None: update_path = '{}{}{}{}'.format(current, os.pathsep, apertium_path, os.pathsep) os.environ['path'] = update_path + if platform.system() == 'Linux': sys.path.append('/usr/lib/python3/dist-packages') pair_paths = ['/usr/share/apertium', '/usr/local/share/apertium'] diff --git a/build-swig-wrapper.sh b/build-swig-wrapper.sh index 15cd82c..c8d76e8 100755 --- a/build-swig-wrapper.sh +++ b/build-swig-wrapper.sh @@ -5,21 +5,24 @@ sudo apt-get install -y swig build-essential python3-setuptools git clone --depth 1 https://github.com/apertium/lttoolbox.git pushd lttoolbox -./autogen.sh --enable-python-bindings && make -j2 +./autogen.sh --enable-python-bindings cd python +make -j2 python3 setup.py install popd git clone --depth 1 https://github.com/apertium/apertium-lex-tools.git pushd apertium-lex-tools -./autogen.sh --enable-python-bindings && make -j2 +./autogen.sh --enable-python-bindings cd python +make -j2 python3 setup.py install popd git clone --depth 1 https://github.com/apertium/apertium.git apertium-core pushd apertium-core -./autogen.sh --enable-python-bindings && make -j2 +./autogen.sh --enable-python-bindings cd python +make -j2 python3 setup.py install popd