tis-pymecavideo

7.2.1.1-2
Pymecavidéo est un logiciel de pointage de vidéo permettant l'analyse mécanique des mouvements.
2169 downloads
Download
View on luti logo
tis-pymecavideo icon

  Description 

  • package : tis-pymecavideo
  • version : 7.2.1.1-2
  • architecture : all
  • categories : Media
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
  • description : Pymecavidéo est un logiciel de pointage de vidéo permettant l'analyse mécanique des mouvements.
  • locale :
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://download.tuxfamily.org/oppl/windows/
  • installed_size :
  • impacted_process : pymecavideo
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-12-28T14:02:32.313213

  Setup.py 

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

# 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
bin_contains = 'pymecavideo_'


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob('*%s*.exe' % bin_contains)[0]
    used_version = get_product_props(bin_name)['ProductVersion']

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key='pymecavideo %s_is1' % used_version,
        min_version=used_version,
    )


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    sub_bin_name = 'pymecavideo_%s_setup.exe'
    url = 'http://download.tuxfamily.org/oppl/windows/'

    # Getting latest version information from official sources
    version = re.findall('pymecavideo_(.*)_setup.exe"', ensure_unicode(wgets(url, proxies=proxies)))[-1]
    latest_bin = sub_bin_name % version
    download_url = url + latest_bin

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_product_props(latest_bin)['FileVersion']
        if Version(version) != Version(version_from_file) and version_from_file != '':
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, sub_bin_name % version_from_file)
            version = version_from_file
        else:
            print("Binary file version correspond to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
    #control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result




										

  Changelog 



No changelog.txt.
									
  manifest.sha256