# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables

    last_package_version = control.get_software_version()

    dict_arch = {"x64":"win64.exe","x86":"win32.exe"}
    # Installing the software
    print("Installing: graphviz")
    install_exe_if_needed('windows_10_cmake_Release_graphviz-install-%s-%s' % (last_package_version,dict_arch[control.architecture]),
        silentflags='/S',
        key='Graphviz',
        min_version=last_package_version
    )



