tis-carmetal

4.3-1
CAR-based dynamic geometry software
4831 downloads
Download
default icon

  Description 

  • package : tis-carmetal
  • version : 4.3-1
  • architecture : all
  • categories : Utilities
  • maintainer : Kevin Guerineau, Benjamin Braye
  • description : CAR-based dynamic geometry software
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.5
  • sources : https://gitea.ad.tranquil.it/wapt-packages/tis-carmetal
  • installed_size : 175886336
  • impacted_process : javaw.exe
  • description_fr : Logiciel de géométrie dynamique basé sur CAR
  • description_pl : Oprogramowanie do geometrii dynamicznej oparte na CAR
  • description_de : CAR-basierte dynamische Geometrie-Software
  • description_es : Software de geometría dinámica basado en CAR
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Patrice Debrabant
  • licence : GPL v3
  • signature_date : 2020-11-10T11:12:08.978454
  • Homepage : https://carmetal.org/

  Setup.py 

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

uninstallkey = ['']

def install():
    print('installing %s' % control.package)
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed("carmetal_setup_%s.exe" % versionpaquet, silentflags='/VERYSILENT', min_version=versionpaquet)




def uninstall():
    print('remove %s' % control.package)
    for soft in installed_softwares('carmetal'):
        cmd = uninstall_cmd(soft['key'])
    run(cmd)


def update_package():
    import requests,re
    try:
        import BeautifulSoup
    except:
        import bs4 as BeautifulSoup

    proxies = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    verify=True

    current_version = control.version.split('-',1)[0]

    url = 'https://carmetal.org'

    page = requests.get(url + '/index.php/fr/telecharger',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},verify=verify,proxies=proxies).text
    bs = BeautifulSoup.BeautifulSoup(page)

    bs_raw_string = str(bs.find('h4').text).split(',')[0].split(' ')[1]

    version = bs_raw_string
    urlexe = url + "/installeurs-CaRMetal/v" + version.replace('.','-') + "/carmetal_setup_%s.exe" % version

    filename = "carmetal_setup_%s.exe" % version

    for fileexe in glob.glob('carmetal_setup_*.exe'):
        if fileexe != filename :
            print('Delete ' + fileexe)
            remove_file(fileexe)

    if not isfile(filename):
        print('Download ' + urlexe)
        wget(urlexe,filename,proxies=proxies)

    control.version = version + '-0'
    control.save_control_to_wapt()
										

  Changelog 



No changelog.txt.
									
  manifest.sha256