Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/packagemanager/tst/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 14.4.2025 mit Größe 837 B image not shown  

Quelle  compile.tst   Sprache: unbekannt

 
# Try to compile IO (which should be installed but not in the user pkg dir)
gap> CompilePackage("io");
#I  Package "io" not installed in user package directory
false

# Try to compile something that's not there at all
gap> CompilePackage("madeUpPackage");
#I  Package "madeUpPackage" not installed in user package directory
false

# CompilePackage bad input
gap> CompilePackage(3);
Error, <name> must be a string
gap> CompilePackage(true);
Error, <name> must be a string

# Compile already compiled
gap> InstallPackage("toric");
true
gap> CompilePackage("toric");
true

# Missing BuildPackages script
gap> temp := PKGMAN_BuildPackagesScript;;
gap> PKGMAN_BuildPackagesScript := fail;;
gap> CompilePackage("toric");
#I  Compilation script not found
false
gap> PKGMAN_BuildPackagesScript := temp;;
gap> RemovePackage("toric", false);
true

[ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ]