Skip to content

Commit

Permalink
PDL::Primitive switch to new lib/*.pd scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Nov 19, 2024
1 parent bedcea3 commit 7a8302c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 26 deletions.
3 changes: 3 additions & 0 deletions Basic/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ lib/PDL/Math.xs
lib/PDL/Ops.c
lib/PDL/Ops.pm
lib/PDL/Ops.xs
lib/PDL/Primitive.c
lib/PDL/Primitive.pm
lib/PDL/Primitive.xs
lib/PDL/Slices.c
lib/PDL/Slices.pm
lib/PDL/Slices.xs
Expand Down
4 changes: 2 additions & 2 deletions Basic/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ push @cleanup, $cobj;
my $core_obj = catfile(qw(lib PDL), 'Core$(OBJ_EXT)');

# the modules in PDL::LiteF, used in t/core.t
my @BUILD_CORE = qw(Bad Core Math Ops Slices Ufunc);
my @DIRS_CORE = qw(Primitive MatrixOps);
my @BUILD_CORE = qw(Bad Core Math Ops Primitive Slices Ufunc);
my @DIRS_CORE = qw(MatrixOps);
# the modules needed in "use PDL"
my @DIRS_BASIC = qw(IO-Misc IO-Pnm Lib-Compression Lib-FFT Lib-ImageND Lib-ImageRGB);
WriteMakefile(
Expand Down
3 changes: 0 additions & 3 deletions Basic/Primitive/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions Basic/Primitive/Makefile.PL

This file was deleted.

File renamed without changes.
4 changes: 4 additions & 0 deletions Basic/Primitive/primitive.pd → Basic/lib/PDL/Primitive.pd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ my $F = [map $_->ppsym, grep $_->real && !$_->integer, types()];
my $AF = [map $_->ppsym, grep !$_->integer, types];
$AF = [(grep $_ ne 'D', @$AF), 'D']; # so defaults to D if non-float given

{ # pass info back to Makefile.PL
$PDL::Core::Dev::EXTRAS{$::PDLMOD}{OBJECT} .= " $::PDLBASE-xoshiro256plus\$(OBJ_EXT)";
}

pp_addpm({At=>'Top'},<<'EOD');
use strict;
use warnings;
Expand Down
5 changes: 2 additions & 3 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ Basic/lib/PDL/PP/Dims.pm
Basic/lib/PDL/PP/PDLCode.pm
Basic/lib/PDL/PP/PdlParObj.pm
Basic/lib/PDL/PP/Signature.pm
Basic/lib/PDL/Primitive-xoshiro256plus.c
Basic/lib/PDL/Primitive.pd
Basic/lib/PDL/QuickStart.pod
Basic/lib/PDL/Reduce.pm
Basic/lib/PDL/Scilab.pod
Expand All @@ -174,9 +176,6 @@ Basic/MatrixOps/simq.c
Basic/MatrixOps/sslib.c
Basic/MatrixOps/sslib.h
Basic/MatrixOps/svd.c
Basic/Primitive/Makefile.PL
Basic/Primitive/primitive.pd
Basic/Primitive/xoshiro256plus.c
Basic/script/pdl.c
Basic/script/pdldoc
Basic/script/perldl
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RCS
^Basic/lib/PDL/Bad(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Math(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Ops(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Primitive(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Slices(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Ufunc(\.(pm|xs|c)$|-pp-)
^Basic/lib/PDL/Core\.c$
Expand All @@ -55,7 +56,6 @@ RCS
^Basic/Lib-ImageRGB/ImageRGB\..*
^Basic/Lib-Transform/Transform\..*
^Basic/MatrixOps/MatrixOps\..*
^Basic/Primitive/Primitive\..*
^Basic/script/pdl$
^Graphics/TriD/OpenGLQ/OpenGLQ\.*
^Graphics/TriD/Rout/Rout\.*
Expand Down

0 comments on commit 7a8302c

Please sign in to comment.