<commit_before>#!/usr/bin/env python2.7

import os, site, sys

freeze = False
try:
    from cx_Freeze import setup, Executable
    freeze = True
except ImportError:
    from distutils.core import setup

## Get the site-package folder, not everybody will install
## Python into C:\PythonXX
site_dir = site.getsitepackages()[1]
include_dll_path = os.path.join(site_dir, "gtk")

## Collect the list of missing dll when cx_freeze builds the app
missing_dll = ['libgtk-3-0.dll',
               'libgdk-3-0.dll',
               'libatk-1.0-0.dll',
               'libcairo-gobject-2.dll',
               'libgdk_pixbuf-2.0-0.dll',
               'libjpeg-8.dll',
               'libpango-1.0-0.dll',
               'libpangocairo-1.0-0.dll',
               'libpangoft2-1.0-0.dll',
               'libpangowin32-1.0-0.dll',
               'libpyglib-gi-2.0-python-0.dll',
               'libglib-2.0-0.dll',
               'libgobject-2.0-0.dll',
               'libintl-8.dll',
               'libgirepository-1.0-1.dll',
               'libgio-2.0-0.dll',
               'libgmodule-2.0-0.dll',
               'libffi-6.dll',
               'zlib1.dll',
               'libcairo-2.dll',
               'libfontconfig-1.dll',
               'libfreetype-6.dll',
               'libxml2-2.dll',
               'libpng15-15.dll',
               'libjson-glib-1.0-0.dll',
               'libgnutls-26.dll',
               'libgcrypt-11.dll',
               'libp11-kit-0.dll'
]

## We also need to add the glade folder, cx_freeze will walk
## into it and copy all the necessary files
glade_folder = 'glade'

## We need to add all the libraries too (for themes, etc..)
gtk_libs = ['etc', 'lib', 'share']

## Create the list of includes as cx_freeze likes
include_files = []
for dll in missing_dll:
    include_files.append((os.path.join(include_dll_path, dll), dll))

## Let's add glade folder and files
include_files.append((glade_folder, glade_folder))

## Let's add gtk libraries folders and files
for lib in gtk_libs:
    include_files.append((os.path.join(include_dll_path, lib), lib))

base = None

## Lets not open the console while running the app
if sys.platform == "win32":
    base = "Win32GUI"

if freeze:
    executables = [
        Executable("MobilinkdTnc1Config.py",
                   base=base
        )
    ]
else:
    executables = ["MobilinkdTnc1Config.py"]
    

buildOptions = dict(
    compressed = False,
    includes = ["gi"],
    packages = ["gi"],
    include_files = include_files
    )

setup(
    name = "MobilinkdTnc1Config",
    version = "0.3",
    author = "Mob<NAME>",
    author_email = "<EMAIL>",
    url = "https://github.com/mobilinkd/tnc1-python-config",
    license = "Apache 2.0",
    description = "Configuration tool for Mobilinkd TNC1",
    long_description = 
"""This program is used to connect to the Mobilinkd TNC1 via RFCOMM (serial
port) and is used to set the transmit volume level, monitor receive volume
level so it can be properly adjusted on the radio, set the KISS parameters,
and upload new firmware to the TNC.  It requires that the TNC has been
connected to the computer and assigned a serial port.""",
    options = dict(build_exe = buildOptions),
    platforms = ('Any',),
    keywords = ('mobilinkd', 'aprs', 'ham', 'afsk', 'tnc'),
    requires = ['pyserial', 'pygobject3'],
    scripts = executables
)<commit_msg>Add missing modules.<commit_after>#!/usr/bin/env python2.7

import os, site, sys

freeze = False
try:
    from cx_Freeze import setup, Executable
    freeze = True
except ImportError:
    from distutils.core import setup

## Get the site-package folder, not everybody will install
## Python into C:\PythonXX
site_dir = site.getsitepackages()[1]
include_dll_path = os.path.join(site_dir, "gtk")

## Collect the list of missing dll when cx_freeze builds the app
missing_dll = ['libgtk-3-0.dll',
               'libgdk-3-0.dll',
               'libatk-1.0-0.dll',
               'libcairo-gobject-2.dll',
               'libgdk_pixbuf-2.0-0.dll',
               'libjpeg-8.dll',
               'libpango-1.0-0.dll',
               'libpangocairo-1.0-0.dll',
               'libpangoft2-1.0-0.dll',
               'libpangowin32-1.0-0.dll',
               'libpyglib-gi-2.0-python-0.dll',
               'libglib-2.0-0.dll',
               'libgobject-2.0-0.dll',
               'libintl-8.dll',
               'libgirepository-1.0-1.dll',
               'libgio-2.0-0.dll',
               'libgmodule-2.0-0.dll',
               'libffi-6.dll',
               'zlib1.dll',
               'libcairo-2.dll',
               'libfontconfig-1.dll',
               'libfreetype-6.dll',
               'libxml2-2.dll',
               'libpng15-15.dll',
               'libjson-glib-1.0-0.dll',
               'libgnutls-26.dll',
               'libgcrypt-11.dll',
               'libp11-kit-0.dll'
]

## We also need to add the glade folder, cx_freeze will walk
## into it and copy all the necessary files
glade_folder = 'glade'

## We need to add all the libraries too (for themes, etc..)
gtk_libs = ['etc', 'lib', 'share']

## Create the list of includes as cx_freeze likes
include_files = []
for dll in missing_dll:
    include_files.append((os.path.join(include_dll_path, dll), dll))

## Let's add glade folder and files
include_files.append((glade_folder, glade_folder))
include_files.append(['Avr109.py', 'BootLoader.py', 'IntexHexRecord.py'])

## Let's add gtk libraries folders and files
for lib in gtk_libs:
    include_files.append((os.path.join(include_dll_path, lib), lib))

base = None

## Lets not open the console while running the app
if sys.platform == "win32":
    base = "Win32GUI"

if freeze:
    executables = [
        Executable("MobilinkdTnc1Config.py",
                   base=base
        )    ]
else:
    executables = ['MobilinkdTnc1Config.py']

py_modules = ['Avr109', 'BootLoader', 'IntelHexRecord']

buildOptions = dict(
    compressed = False,
    includes = ["gi"],
    packages = ["gi"],
    include_files = include_files
    )

setup(
    name = "MobilinkdTnc1Config",
    version = "0.3",
    author = "Mobilinkd LLC",
    author_email = "<EMAIL>",
    url = "https://github.com/mobilinkd/tnc1-python-config",
    license = "Apache 2.0",
    description = "Configuration tool for Mobilinkd TNC1",
    long_description = 
"""This program is used to connect to the Mobilinkd TNC1 via RFCOMM (serial
port) and is used to set the transmit volume level, monitor receive volume
level so it can be properly adjusted on the radio, set the KISS parameters,
and upload new firmware to the TNC.  It requires that the TNC has been
connected to the computer and assigned a serial port.""",
    options = dict(build_exe = buildOptions),
    platforms = ('Any',),
    keywords = ('mobilinkd', 'aprs', 'ham', 'afsk', 'tnc'),
    requires = ['pyserial', 'pygobject3'],
    scripts = executables,
    py_modules = py_modules
)
{'fraction_non_alphanumeric': 0.12838719026228082, 'fraction_numerical': 0.025503550210114478, 'mean_word_length': 2.339138848572811, 'pattern_counts': {'":': 2, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6210937', 'n_tokens_mistral': 2429, 'n_tokens_neox': 2328, 'n_words': 584}