Skip to content

Commit

Permalink
Avoid using InstallValue
Browse files Browse the repository at this point in the history
For some background, see gap-system/gap#1637
  • Loading branch information
fingolfin committed Aug 1, 2022
1 parent 385d88a commit ef832ab
Show file tree
Hide file tree
Showing 60 changed files with 102 additions and 282 deletions.
2 changes: 0 additions & 2 deletions 4ti2Interface/gap/4ti2Interface.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#! Copy it in your GAP pkg-directory.
#! After this, the package can be loaded via LoadPackage( "4ti2Interface" );

DeclareGlobalVariable( "4ti2Interface_BINARIES" );

#! @Chapter 4ti2 functions

#! @Section Groebner
Expand Down
2 changes: 1 addition & 1 deletion 4ti2Interface/gap/4ti2Interface.gi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##
#############################################################################

InstallValue( 4ti2Interface_BINARIES,
BindGlobal( "4ti2Interface_BINARIES",
rec(
required_binaries := [ "groebner", "hilbert", "zsolve", "graver" ],
) );
Expand Down
3 changes: 0 additions & 3 deletions ExamplesForHomalg/gap/ExamplesForHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
DeclareInfoClass( "InfoExamplesForHomalg" );
SetInfoLevel( InfoExamplesForHomalg, 1 );

# a central place for configurations:
DeclareGlobalVariable( "HOMALG_EXAMPLES" );

####################################
#
# global functions and operations:
Expand Down
2 changes: 1 addition & 1 deletion ExamplesForHomalg/gap/ExamplesForHomalg.gi
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# a central place for configuration variables:

InstallValue( HOMALG_EXAMPLES,
BindGlobal( "HOMALG_EXAMPLES",
rec(
OwnRingOrReadFile := 1
)
Expand Down
58 changes: 58 additions & 0 deletions RingsForHomalg/doc/_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- This is an automatically generated file. -->
<!DOCTYPE Book SYSTEM "gapdoc.dtd"
[
<!ENTITY Version '2020.04.19'>
<!ENTITY alexander '<Package>alexander</Package>'>
<!ENTITY see '<Alt Only="LaTeX">$\to$</Alt><Alt Not="LaTeX">--&gt;</Alt>'>
<!ENTITY GAP4 '<Package>GAP4</Package>'>
<!ENTITY Maple '<Package>Maple</Package>'>
<!ENTITY Mathematica '<Package>Mathematica</Package>'>
<!ENTITY Singular '<Package>Singular</Package>'>
<!ENTITY Plural '<Package>Plural</Package>'>
<!ENTITY Sage '<Package>Sage</Package>'>
<!ENTITY python '<Package>python</Package>'>
<!ENTITY cython '<Package>cython</Package>'>
<!ENTITY C '<Package>C</Package>'>
<!ENTITY MAGMA '<Package>MAGMA</Package>'>
<!ENTITY Macaulay2 '<Package>Macaulay2</Package>'>
<!ENTITY IO '<Package>IO</Package>'>
<!ENTITY MatricesForHomalg '<Package>MatricesForHomalg</Package>'>
<!ENTITY homalg '<Package>homalg</Package>'>
<!ENTITY Modules '<Package>Modules</Package>'>
<!ENTITY ResidueClassRingForHomalg '<Package>ResidueClassRingForHomalg</Package>'>
<!ENTITY LIRNG '<Package>LIRNG</Package>'>
<!ENTITY LIMAP '<Package>LIMAP</Package>'>
<!ENTITY LIMAT '<Package>LIMAT</Package>'>
<!ENTITY COLEM '<Package>COLEM</Package>'>
<!ENTITY LIOBJ '<Package>LIOBJ</Package>'>
<!ENTITY LIMOR '<Package>LIMOR</Package>'>
<!ENTITY LICPX '<Package>LICPX</Package>'>
<!ENTITY ExamplesForHomalg '<Package>ExamplesForHomalg</Package>'>
<!ENTITY Gauss '<Package>Gauss</Package>'>
<!ENTITY GaussForHomalg '<Package>GaussForHomalg</Package>'>
<!ENTITY HomalgToCAS '<Package>HomalgToCAS</Package>'>
<!ENTITY IO_ForHomalg '<Package>IO_ForHomalg</Package>'>
<!ENTITY MapleForHomalg '<Package>MapleForHomalg</Package>'>
<!ENTITY RingsForHomalg '<Package>RingsForHomalg</Package>'>
<!ENTITY LessGenerators '<Package>LessGenerators</Package>'>
<!ENTITY Yoneda '<Package>Yoneda</Package>'>
<!ENTITY Sheaves '<Package>Sheaves</Package>'>
<!ENTITY SCO '<Package>SCO</Package>'>
<!ENTITY LocalizeRingForHomalg '<Package>LocalizeRingForHomalg</Package>'>
<!ENTITY GAPDoc '<Package>GAPDoc</Package>'>
<!ENTITY LIMOD '<Package>LIMOD</Package>'>
]
>
<Book Name="RingsForHomalg">
<#Include SYSTEM "title.xml">
<TableOfContents/>
<Body>
<#Include SYSTEM "intro.xml">
<#Include SYSTEM "install.xml">
<#Include SYSTEM "ringtable.xml">
</Body>
<Bibliography Databases="RingsForHomalg.bib"/>
<TheIndex/>
</Book>
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/GAPHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_GAP" );

DeclareGlobalVariable( "GAPHomalgMacros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/GAPHomalg.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( HOMALG_IO_GAP,
BindGlobal( "HOMALG_IO_GAP",
rec(
cas := "gap", ## normalized name on which the user should have no control
name := "GAP",
Expand Down Expand Up @@ -76,7 +76,7 @@ InstallGlobalFunction( _ExternalGAP_multiple_delete,
end );

##
InstallValue( GAPHomalgMacros,
BindGlobal( "GAPHomalgMacros",
rec(

)
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgBasic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the external rings provided by the GAP package homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgBasic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgBasic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgBasic,
BindGlobal( "CommonHomalgTableForGAPHomalgBasic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgBestBasis.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the GAP implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgBestBasis" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgBestBasis.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgBestBasis,
BindGlobal( "CommonHomalgTableForGAPHomalgBestBasis",

rec(
## Can optionally be provided by the RingPackage
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/GAPHomalgTools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the Maple implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForGAPHomalgTools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/GAPHomalgTools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForGAPHomalgTools,
BindGlobal( "CommonHomalgTableForGAPHomalgTools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ "Zero( ", R, " )" ], "Zero" ), "GAP", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/MAGMA.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_MAGMA" );

DeclareGlobalVariable( "MAGMAMacros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/MAGMA.gi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
####################################

InstallValue( HOMALG_IO_MAGMA,
BindGlobal( "HOMALG_IO_MAGMA",
rec(
cas := "magma", ## normalized name on which the user should have no control
name := "MAGMA",
Expand Down Expand Up @@ -131,7 +131,7 @@ InstallGlobalFunction( _MAGMA_multiple_delete,
end );

##
InstallValue( MAGMAMacros,
BindGlobal( "MAGMAMacros",
rec(

_order := [
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMABasic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMABasic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMABasic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMABasic,
BindGlobal( "CommonHomalgTableForMAGMABasic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMABestBasis.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings with BestBasis provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMABestBasis" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMABestBasis.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMABestBasis,
BindGlobal( "CommonHomalgTableForMAGMABestBasis",

rec(
## Can optionally be provided by the RingPackage
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/MAGMATools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by MAGMA.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMAGMATools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/MAGMATools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMAGMATools,
BindGlobal( "CommonHomalgTableForMAGMATools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ "Zero(", R, ")" ], "Zero" ), "MAGMA", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/Macaulay2.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_Macaulay2" );

DeclareGlobalVariable( "Macaulay2Macros" );

####################################
#
# global functions and operations:
Expand Down
4 changes: 2 additions & 2 deletions RingsForHomalg/gap/Macaulay2.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( HOMALG_IO_Macaulay2,
BindGlobal( "HOMALG_IO_Macaulay2",
rec(
cas := "macaulay2", ## normalized name on which the user should have no control
name := "Macaulay2",
Expand Down Expand Up @@ -99,7 +99,7 @@ InstallGlobalFunction( _Macaulay2_SetInvolution,
end );

##
InstallValue( Macaulay2Macros,
BindGlobal( "Macaulay2Macros",
rec(

IsIdentityMatrix := "\n\
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/Macaulay2Basic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@
## Declarations for the rings provided by Macaulay2.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMacaulay2Basic" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/Macaulay2Basic.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
####################################

InstallValue( CommonHomalgTableForMacaulay2Basic,
BindGlobal( "CommonHomalgTableForMacaulay2Basic",

rec(
## Must only then be provided by the RingPackage in case the default
Expand Down
9 changes: 0 additions & 9 deletions RingsForHomalg/gap/Macaulay2Tools.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@
## of the Maple implementation of homalg.
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "CommonHomalgTableForMacaulay2Tools" );

2 changes: 1 addition & 1 deletion RingsForHomalg/gap/Macaulay2Tools.gi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
####################################

InstallValue( CommonHomalgTableForMacaulay2Tools,
BindGlobal( "CommonHomalgTableForMacaulay2Tools",

rec(
Zero := HomalgExternalRingElement( R -> homalgSendBlocking( [ R, "#0" ], "Zero" ), "Macaulay2", IsZero ),
Expand Down
10 changes: 0 additions & 10 deletions RingsForHomalg/gap/MapleHomalg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
##
#############################################################################

####################################
#
# global variables:
#
####################################

DeclareGlobalVariable( "HOMALG_IO_Maple" );

DeclareGlobalVariable( "MapleMacros" );

####################################
#
# global functions and operations:
Expand Down
Loading

0 comments on commit ef832ab

Please sign in to comment.