tis-julia icon

julia

Silent install package for julia

1.9-0

  • package: tis-julia
  • name: julia
  • version: 1.9-0
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Pierre Cosson
  • locale: all
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 150.11 Mo

package           : tis-julia
version           : 1.9-0
architecture      : x64
section           : base
priority          : optional
name              : julia
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Pierre Cosson
description       : Julia is a language that is fast, dynamic, easy to use, and open source
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://julialang.org/downloads/
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      : 8aee1356-26f9-4ba9-8bee-b0e324a15ba0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 19f3c2d374cc23797dfdaa2706b1ea4648283220a2f04630ca3396f36d6ea05f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : QVaIWcBf6kbb/hffNJ0+DrHnIdB06e+enU/lp+tCADABoY7BR60wmGh56Ar9dvb0dxJkDDUHln/2hneBlF+71NpUNhZ86SsGI+oU5LT5eR2WxN7e9Pf4zOucWWR8TBCUeTcXWx5U6qBGHzIKBTjJHlNc3r8KrzwdBU3XpDKlWqh7c91hfgv4iPW+4i/ydZOqElwDT0FPaPcVizsAqynMRBifs/Pv3dZNLVC8LwkDhpqkUTvPR2DeBCLXTAkpe15mbcgbV6zaQJzCParpfo5dggN7jdu1mm26bWbVn2UMgse7qOCYx76jmaX6FfeoqXNT8zs1aFghE8a8E7Cj3V6YkA==
signature_date    : 2023-05-15T13:01:56.935982
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

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

bin_contains = "julia"
path_to_app = makepath(programfiles64, bin_contains)


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    zip_name = glob.glob("*%s*.zip" % bin_contains)[0]
    # Installing the package
    print("Installing: %s" % zip_name)
    unzip(zip_name, programfiles64)
    # Renaming Folder
    folder_name = glob.glob("%s\\*%s*" % (programfiles64, bin_contains))[0]
    os.rename(folder_name, path_to_app)
    # adding to System path
    add_to_system_path(makepath(programfiles64, bin_contains, "bin"))


def uninstall():
    print("Uninstalling %s" % bin_contains)
    remove_tree(path_to_app)
    # adding to System path
    remove_from_system_path(makepath(programfiles64, bin_contains, "bin"))

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


def update_package():
    # Declaring local variables
    bin_contains = "julia"
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    zip_name_sub = bin_contains + "-%s.zip"
    url = " https://julialang.org/downloads/"
    if control.architecture == "x64":
        arch = "win64"
    else:
        arch = "32bit"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "class", proxies=proxies):
        if bin_contains in bs_search["href"] and arch in bs_search["href"] and ".zip" in bs_search["href"]:
            version = bs_search["href"].split("/")[-2]
            latest_bin = bs_search["href"].split("/")[-1]
            url_dl = bs_search["href"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % url_dl)

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

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        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, zip_name_sub % version_from_file)
            version = version_from_file

    # 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(version))
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

a8335f229df9cf6b5f4d235afd342af80419f7f9b12aa9d7225f8becb43954d3 : setup.py
c225d0849ca427855e2b4d2f63d564fd5fa1465ff45cf032263bd8fe56794dfc : update_package.py
af86beb024f9433045bc25d9bf60a65ca0095f76610120eae06cbb6799b3466b : julia-1.9.0-win64.zip
19f3c2d374cc23797dfdaa2706b1ea4648283220a2f04630ca3396f36d6ea05f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
3501b98f76ef56b2c4647a80062ba568cc9cdb6f620741115a5f9066fc4ced36 : luti.json
853ec0acc93357a33965029d9275355cb185f4f6b5c730b4041943f17e8e904c : WAPT/control