tis-octave
5.1.0-2
GNU Octave is a free software of numerical computation comparable to MATLAB and Scilab. This is not a formal calculation software. The software is developed and maintained for the GNU project by John W. Eaton.
1540 downloads

Description
- package : tis-octave
- version : 5.1.0-2
- architecture : x86
- categories :
- maintainer : Simon Fonteneau
- description : GNU Octave is a free software of numerical computation comparable to MATLAB and Scilab. This is not a formal calculation software. The software is developed and maintained for the GNU project by John W. Eaton.
- locale :
- target_os : windows
- min_wapt_version : 1.5.1.20
- sources :
- installed_size : 1846398976
- impacted_process : octave-gui.exe
- description_fr : GNU Octave est un logiciel libre de calcul numérique comparable à MATLAB et à Scilab. Ce n'est pas un logiciel de calcul formel. Le logiciel est développé puis maintenu pour le projet GNU par John W. Eaton
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor :
- licence :
- signature_date : 2020-02-27T21:37:14.711132
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing Octave')
versionsoftfile = control['version'].split('-',1)[0]
versionsoft = get_file_properties("octave-%s-w32-installer.exe" % versionsoftfile)['ProductVersion']
for octave in installed_softwares('Octave-'):
if Version(octave['version']) < Version(versionsoft):
run(uninstall_cmd(octave['key']))
install_exe_if_needed("octave-%s-w32-installer.exe" % versionsoft,'/S',key='Octave-%s' % versionsoft,min_version=versionsoft,timeout=1200,killbefore=control['impacted_process'])
create_programs_menu_shortcut('Octave',target=makepath('c:','Octave','Octave-' + versionsoft,'octave.vbs'),arguments='--force-gui',icon=makepath('c:','Octave','Octave-' + versionsoft,'share','octave',versionsoft,'imagelib','octave-logo.ico'))
def uninstall():
remove_programs_menu_shortcut('Octave')
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.gnu.org/software/octave/download.html",proxies=proxies).split("-w32-installer.exe")[0].split('-')[-1]
binaryfile64 = 'octave-%s-w32-installer.exe' % lastversion
for exe in glob.glob('*-w64-installer.exe'):
if exe != binaryfile64 :
remove_file(exe)
if not isfile(binaryfile64):
wget('https://ftp.gnu.org/gnu/octave/windows/' + binaryfile64, 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()