# Path: COMTool/helpAbout.py
# def strAbout():
# 
# Path: COMTool/parameters.py
# class Strings:
# class Parameters:
#     def __init__(self, locale):
# def get_config_path(configFileName):
#     def save(self, path):
#     def load(self, path):
#     def __str__(self) -> str:
# 
# Path: COMTool/i18n.py
# def _(text):
# def set_locale(locale_in):
# def get_languages():
# def extract(src_path, config_file_path, out_path):
# def init(template_path, out_dir, locale, domain="messages"):
# def update(template_path, out_dir, locale, domain="messages"):
# def compile(translate_dir, locale, domain="messages"):
# def main(cmd):
# 
# Path: COMTool/version.py
# class Version:
#     def __init__(self, major=major, minor=minor, dev=dev, name="", desc=""):
#     def dump_dict(self):
#     def load_dict(self, obj):
#     def int(self):
#     def __str__(self):


from setuptools import setup,find_packages
from codecs import open
from os import path
from COMTool import helpAbout, parameters, i18n, version
import os
import platform
here = path.abspath(path.dirname(__file__))

# update translate
i18n.main("finish")

# Get the long description from the README file
with open(path.join(here, 'README.MD'), encoding='utf-8') as f:
    long_description = f.read()

systemPlatform = platform.platform()
    
if "Linux" in systemPlatform and "arm" in systemPlatform :
    print("platform is arm linux: will install lib first")
    os.system("sudo apt install python3 python3-pip python3-pyqt5")
    os.system("sudo pip3 install --upgrade pyserial")
    installRequires = []
else:
    installRequires = ['pyqt5>=5',
                      'pyserial>=3.4',
                      'requests',
                      'Babel',
                      'qtawesome'
                      ]

setup(
    name='COMTool',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html

# Path: COMTool/helpAbout.py
# def strAbout():
# 
# Path: COMTool/parameters.py
# class Strings:
# class Parameters:
#     def __init__(self, locale):
# def get_config_path(configFileName):
#     def save(self, path):
#     def load(self, path):
#     def __str__(self) -> str:
# 
# Path: COMTool/i18n.py
# def _(text):
# def set_locale(locale_in):
# def get_languages():
# def extract(src_path, config_file_path, out_path):
# def init(template_path, out_dir, locale, domain="messages"):
# def update(template_path, out_dir, locale, domain="messages"):
# def compile(translate_dir, locale, domain="messages"):
# def main(cmd):
# 
# Path: COMTool/version.py
# class Version:
#     def __init__(self, major=major, minor=minor, dev=dev, name="", desc=""):
#     def dump_dict(self):
#     def load_dict(self, obj):
#     def int(self):
#     def __str__(self):


# Path: setup.py
from setuptools import setup,find_packages
from codecs import open
from os import path
from COMTool import helpAbout, parameters, i18n, version
import os
import platform

here = path.abspath(path.dirname(__file__))

# update translate
i18n.main("finish")

# Get the long description from the README file
with open(path.join(here, 'README.MD'), encoding='utf-8') as f:
    long_description = f.read()

systemPlatform = platform.platform()
    
if "Linux" in systemPlatform and "arm" in systemPlatform :
    print("platform is arm linux: will install lib first")
    os.system("sudo apt install python3 python3-pip python3-pyqt5")
    os.system("sudo pip3 install --upgrade pyserial")
    installRequires = []
else:
    installRequires = ['pyqt5>=5',
                      'pyserial>=3.4',
                      'requests',
                      'Babel',
                      'qtawesome'
                      ]

setup(
    name='COMTool',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html

    version=version.__version__,