Skip to content

Commit c9ed4a9

Browse files
authored
Merge pull request #251 from zickgraf/master
Only install primitive operations if `no_precompiled_code` is set
2 parents a377914 + 33ced9d commit c9ed4a9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "FinSetsForCAP",
1212
Subtitle := "The elementary topos of (skeletal) finite sets",
13-
Version := "2024.02-07",
13+
Version := "2024.02-08",
1414

1515
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1616
License := "GPL-2.0-or-later",

gap/SkeletalFinSets.gi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ InstallMethod( SkeletalCategoryOfFiniteSets,
3838
SetRangeCategoryOfHomomorphismStructure( cat, cat );
3939
SetIsEquippedWithHomomorphismStructure( cat, true );
4040

41-
INSTALL_FUNCTIONS_FOR_SKELETAL_FIN_SETS( cat );
42-
4341
#= comment for Julia
4442
AddTheoremFileToCategory( cat,
4543
Filename( DirectoriesPackageLibrary( "Toposes", "LogicForToposes" ), "PropositionsForToposes.tex" ) );
4644
# =#
4745

48-
if not CAP_NAMED_ARGUMENTS.no_precompiled_code then
46+
if CAP_NAMED_ARGUMENTS.no_precompiled_code then
47+
48+
INSTALL_FUNCTIONS_FOR_SKELETAL_FIN_SETS( cat );
49+
50+
else
4951

5052
ADD_FUNCTIONS_FOR_SkeletalCategoryOfFiniteSetsWithMorphismsGivenByListsPrecompiled( cat );
5153

0 commit comments

Comments
 (0)