tis-scilab icon

Scilab

Paquet d’installation silencieuse pour Scilab

2025.1.0-2

  • package: tis-scilab
  • name: Scilab
  • version: 2025.1.0-2
  • maintainer: Jordan ARNAUD
  • editor: Dassault Systèmes
  • licence: GPLv2
  • locale: all
  • target_os: debian_based
  • impacted_process: WScilex
  • architecture: x64
  • signature_date:
  • size: 523.47 Mo
  • installed_size: 1.33 Go
  • homepage : https://www.scilab.org/

package           : tis-scilab
version           : 2025.1.0-2
architecture      : x64
section           : base
priority          : optional
name              : Scilab
categories        : 
maintainer        : Jordan ARNAUD
description       : Scilab is an open-source, multi-platform numerical computation program that provides a computational environment for scientific applications.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian_based
min_wapt_version  : 2.3
sources           : 
installed_size    : 1333592064
impacted_process  : WScilex
description_fr    : Scilab est un logiciel libre de calcul numérique multi-plateforme fournissant un environnement de calcul pour des applications scientifiques.
description_pl    : Scilab to wieloplatformowy pakiet oprogramowania do obliczeń numerycznych o otwartym kodzie źródłowym, który zapewnia środowisko obliczeniowe do zastosowań naukowych.
description_de    : Scilab ist eine plattformübergreifende freie Software für numerische Berechnungen, die eine Rechenumgebung für wissenschaftliche Anwendungen bereitstellt.
description_es    : Scilab es un paquete de software de cálculo numérico multiplataforma y de código abierto que proporciona un entorno de cálculo para aplicaciones científicas.
description_pt    : O Scilab é um pacote de software de computação numérica de código aberto e multiplataforma que fornece um ambiente computacional para aplicações científicas.
description_it    : Scilab è un pacchetto software di calcolo numerico open-source e multipiattaforma che fornisce un ambiente di calcolo per applicazioni scientifiche.
description_nl    : Scilab is een open-source, multi-platform numeriek berekeningssoftwarepakket dat een rekenomgeving biedt voor wetenschappelijke toepassingen.
description_ru    : Scilab - это многоплатформенный пакет программ для численных расчетов с открытым исходным кодом, который предоставляет вычислительную среду для научных приложений.
audit_schedule    : 
editor            : Dassault Systèmes
keywords          : 
licence           : GPLv2
homepage          : https://www.scilab.org/
package_uuid      : 0248a3fd-a0ad-43ce-ad65-3b6bf31dd976
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://help.scilab.org/docs/2025.0.0/en_US/CHANGES.html
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-28T06:40:22.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : ObQucnj1o5nYzq3+LcXIzWEKbae3VRSrGJannZf8vcjEshhCZ2CceQPYz6yhS2uCCrOwQ98FD1XVPyWlPR2WSWIasEV2jljgznpmiUG1eFA1zpHa3E/aV1tw2reDz4/XhTlCUfd8En4mzm3+2U6m7cLYVARVuDMl3XmSvm1o5ZY2gUe5bKR/a96IfvUdcxjMvMokD6yX59WjWtS1qbXo94oAnnedOu0v5jYiAbrV3yvrkDwzYTafDu/SbLQrhJzNuiuZnqHVx+Dis5B6Btp9ghEdkkCplHFleasfAHEfFeEID9OnMhc38ekEK1qII50aiDYxnFlYIFSgPIjP1jJIww==

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

bin_path = "/usr/local/bin/scilab"
app_path = "/opt/scilab"

def extract_tar_xz(filename, path="."):
    with tarfile.open(filename, "r:xz") as tar:
        tar.extractall(path)

def install():
    archive_file = glob.glob("*.tar.xz")[0]
    extracted_folder = archive_file.split('.bin', 1)[0]

    # Delete older version
    if isdir(app_path):
        remove_tree(app_path)

    extract_tar_xz(archive_file)
    copytree2(extracted_folder, app_path)

    if isfile(bin_path) or os.path.islink(bin_path):
        print("Removing existing symlink")
        remove_file(bin_path)
        
    print("Creating scilab alias in path")
    os.symlink(f"{app_path}/bin/scilab", bin_path)

    # Delete extracted folder
    if isdir(extracted_folder):
        remove_tree(extracted_folder)
    

def uninstall():
    # Removing of symlink
    if isfile(bin_path) or os.path.islink(bin_path):
        remove_file(bin_path)
        
    # Removing of the software 
    if isdir(app_path):
        remove_tree(app_path)

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

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    download_dict = {
        'windows-x64' : 'Windows 64 bits',
        'debian_based-x64' : 'Linux 64 bits',
        'darwin-x64' : 'macOS 64 bits'
    }
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    url = "https://gitlab.com/api/v4/projects/3330423/releases/"
    print(f"URL used is: {url}")

    latest_release = wgets(url, proxies=proxies, as_json=True)[0] # Get latest realease
    version = latest_release["tag_name"]

    for link in latest_release["assets"]["links"]:
        if link["name"].endswith(download_dict[os_type]):
            download_url = link["url"]
            latest_bin = download_url.rsplit('/', 1)[-1]

    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Deleting outdated binaries
    for f in glob.glob('*.tar.xz'):
        if f != latest_bin:
            remove_file(f)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {version})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({version})")

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
f3bcffac3bf5fa826d66c4031dc528c226f4f9fbdc508cf8f5fa6550da7cb8eb : WAPT/control
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
35b9fea0c196bb0d9499946bbbf651f0fbf50d7be2231d67e0a2bc41c2f4c238 : luti.json
9c9c391e0d8e391621855394c05916b8e313ad08d2db3036189222d5c7aa2d8c : scilab-2025.1.0.bin.x86_64-linux-gnu.tar.xz
484381567aa8a14cbcbd48e673285b123d3fbb5e4df8466762e12a3de89bdc23 : setup.py
9c9d846d6607016fcbc312db309a2debb0574c20f20e533891f7e494a943f88d : update_package.py