LP#1922975: install python3 dependencies, rather than python2
authorJane Sandberg <sandbergja@gmail.com>
Sun, 28 Nov 2021 05:23:06 +0000 (21:23 -0800)
committerBill Erickson <berickxx@gmail.com>
Wed, 16 Mar 2022 19:18:16 +0000 (15:18 -0400)
Also specifies python3 in the shebang lines of python scripts,
and improves the documentation for translators about installing
these dependencies.

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>

18 files changed:
Open-ILS/src/extras/install/Makefile.debian-bullseye
Open-ILS/src/extras/install/Makefile.debian-buster
Open-ILS/src/extras/install/Makefile.debian-stretch
Open-ILS/src/extras/install/Makefile.ubuntu-bionic
build/i18n/scripts/basel10n.py
build/i18n/scripts/db-seed-i18n.py
build/i18n/scripts/dojo_resource.py
build/i18n/scripts/fieldmapper.py
build/i18n/scripts/ils_events.py
build/i18n/scripts/marc_tooltip_maker.py
build/i18n/scripts/merge_ils_events.py
build/i18n/tests/check_entities.py
build/i18n/tests/check_properties.py
build/i18n/tests/testIDL.py
build/i18n/tests/testSQL.py
build/i18n/tests/testbase.py
build/i18n/tests/testpo.py
docs/modules/development/pages/updating_translations_launchpad.adoc

index 60476e0..673c02a 100644 (file)
@@ -145,12 +145,12 @@ TRANSLATOR_DEBS = \
        libtemplate-perl \
        liblocale-maketext-lexicon-perl \
        translate-toolkit \
-       python-dev \
-       python-levenshtein \
-       python-polib \
-       python-setuptools \
-       python-simplejson \
-       python-lxml \
+       python3-dev \
+       python3-levenshtein \
+       python3-polib \
+       python3-setuptools \
+       python3-simplejson \
+       python3-lxml \
        bzr
 
 all:
index 1a9ac16..8278d5c 100644 (file)
@@ -144,12 +144,12 @@ TRANSLATOR_DEBS = \
        libtemplate-perl \
        liblocale-maketext-lexicon-perl \
        translate-toolkit \
-       python-dev \
-       python-levenshtein \
-       python-polib \
-       python-setuptools \
-       python-simplejson \
-       python-lxml \
+       python3-dev \
+       python3-levenshtein \
+       python3-polib \
+       python3-setuptools \
+       python3-simplejson \
+       python3-lxml \
        bzr
 
 all:
index 656025e..2922b26 100644 (file)
@@ -144,12 +144,12 @@ TRANSLATOR_DEBS = \
        libtemplate-perl \
        liblocale-maketext-lexicon-perl \
        translate-toolkit \
-       python-dev \
-       python-levenshtein \
-       python-polib \
-       python-setuptools \
-       python-simplejson \
-       python-lxml \
+       python3-dev \
+       python3-levenshtein \
+       python3-polib \
+       python3-setuptools \
+       python3-simplejson \
+       python3-lxml \
        bzr
 
 all:
index 96557bc..a13d6c3 100644 (file)
@@ -147,12 +147,12 @@ TRANSLATOR_DEBS = \
        libtemplate-perl \
        liblocale-maketext-lexicon-perl \
        translate-toolkit \
-       python-dev \
-       python-levenshtein \
-       python-polib \
-       python-setuptools \
-       python-simplejson \
-       python-lxml \
+       python3-dev \
+       python3-levenshtein \
+       python3-polib \
+       python3-setuptools \
+       python3-simplejson \
+       python3-lxml \
        bzr
 
 all:
index bb816e6..3c0985f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # basel10n.py
 """
 This class enables translation of Evergreen's seed database strings
index 7c59374..5e9a72f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim:et:ts=4:sw=4:
 """
 This class enables translation of Evergreen's seed database strings.
index 64ece4b..75af700 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # dojo_resource.py
 """
 This class enables translation of Dojo resource bundles using gettext format.
index 99a5802..4782a5c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # fieldmapper.py
 """
 This class enables translation of Evergreen's fieldmapper IDL XML.
index 9e359c4..989e7d6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # ils_events.py
 """
 This class enables translation of Evergreen's ils_events XML file.
index f563166..4147d47 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim: set fileencoding=utf-8 :
 # vim:et:ts=4:sw=4:
 
index 57491e3..b56636e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import xml.dom.minidom
 import optparse
 
index d9d8818..34c9663 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -----------------------------------------------------------------------
 # Copyright (C) 2008  Laurentian University
 # Dan Scott <dscott@laurentian.ca>
index 8fc9b86..9f1596e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -----------------------------------------------------------------------
 # Copyright (C) 2008  Laurentian University
 # Dan Scott <dscott@laurentian.ca>
index 568af9e..6b4b30c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim: set fileencoding=utf-8 :
 """
  Perform the following tests:
index 5cd9b33..807a976 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Perform the following tests:
 #  1. Generate a POT file from a set of marked SQL statements
index d7e83bb..11a1969 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf=8 -*-
 # vim: set fileencoding=utf-8 :
 """
index 021e186..215ef67 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import filecmp
 import glob
index 9b17739..40ba14c 100644 (file)
@@ -10,6 +10,18 @@ You must install all of the Python prerequisites required for building
 translations, per
 http://evergreen-ils.org/dokuwiki/doku.php?id=evergreen-admin:customizations:i18n
 
+If you are using a supported operating system, you can use this simple command to 
+install the necessary dependencies:
+
+[source, bash]
+------------------------------------------------------------------------------
+make -f Open-ILS/src/extras/Makefile.install <osname>-translator
+------------------------------------------------------------------------------
+
+Otherwise, install the following dependencies using the method that works
+best for your system.  For python packages, you will want to use the python 3
+version:
+
 * https://bitbucket.org/izi/polib/wiki/Home[polib]
 * http://translate.sourceforge.net[translate-toolkit]
 * http://pypi.python.org/pypi/python-Levenshtein/[levenshtein]