tis-scilab

6.1.0-1
Scilab
502 downloads
Download

  Description 

  • package : tis-scilab
  • version : 6.1.0-1
  • architecture : x64
  • categories :
  • maintainer : Simon Fonteneau
  • description : Scilab
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5.1.20
  • sources :
  • installed_size : 1333592064
  • impacted_process : WScilex.exe
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-08-12T11:30:50.098927

  Setup.py 

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

uninstallkey = []

def install():
    softversion = control['version'].split('-',1)[0]
    force = WAPT and WAPT.options.force

    keywapt = 'scilab-%s (64-bit)_is1' % softversion

    print('installing Scilab')

    for soft in installed_softwares('scilab'):
       if soft['key'] !=  keywapt :
           run(uninstall_cmd(soft['key']))

    install_exe_if_needed("scilab-%s_x64.exe" % softversion,silentflags='/SILENT',key='scilab-%s (64-bit)_is1' % softversion,min_version=" ",killbefore="WScilex.exe",timeout=600)

    remove_desktop_shortcut('scilab-%s (64-bit)' % softversion)
    remove_desktop_shortcut('scilab-%s (64-bit) Desktop' % softversion)


def update_package():

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

    lastversion = wgets('https://www.scilab.org/fr/download',proxies=proxies).split("_x64.exe")[0].split("scilab-")[-1]
    binaryfile64 = 'scilab-%s_x64.exe' % lastversion
    urlfile64 = 'http://www.scilab.org/download/%s/%s' % (lastversion,binaryfile64)

    for exe in glob.glob('*.exe'):
        if exe != binaryfile64:
            remove_file(exe)

    if not isfile(binaryfile64):
        wget(urlfile64,binaryfile64,proxies=proxies)

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = lastversion + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()




										

  Changelog 


No changelog
  manifest.sha256 
[["scilab-6.1.0_x64.exe","c8a1c1db19aa832d2d7797bfd94f73f1e75aed5e07574555f815a552765cc279"],["setup.py","4aaab781755d24bd84346d88969f5ceb7a680180c5351c20cd88e758a5996797"],["WAPT/icon.png","280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9"],["WAPT/wapt.psproj","4b493e7ccdc13099222b1bfa24901e86e8060cfb39378820895a7f0f5bf6f689"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","fd687f71f7b76810d489fadc8e66706c4801f91d0a25840d56a258577e572ec4"]]