Skip to content

Commit

Permalink
distro VERSION from PDL::Core
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Nov 11, 2024
1 parent 2d37f57 commit 5965766
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
4 changes: 1 addition & 3 deletions Basic/Core/Core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ package PDL::Core;
use strict;
use warnings;
use PDL::Exporter;
require PDL; # for $VERSION
use DynaLoader;
our @ISA = qw( PDL::Exporter DynaLoader );
our $VERSION = '2.028'; # PAUSE insists - below is the real one
$VERSION = $PDL::VERSION;
our $VERSION = '2.095'; # as of 2.096 this is the real one
bootstrap PDL::Core $VERSION;
use PDL::Types ':All';
use Config;
Expand Down
8 changes: 1 addition & 7 deletions Basic/Core/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,10 @@ my @cfiles = qw(pdlcore pdlapi pdlbroadcast pdlconv pdlmagic pdlaffine pdlutil);
my $cobj = join ' ', map qq{$_\$(OBJ_EXT)}, @cfiles;
WriteMakefile(
NAME => 'PDL::Core',
VERSION_FROM => '../lib/PDL.pm',
PM => {
(map +($_,'$(INST_LIBDIR)/'.$_), qw/Core.pm/),
},
VERSION_FROM => 'Core.pm',
OBJECT => 'Core$(OBJ_EXT) ' . $cobj,
DEFINE => $pthread_define,
LIBS => [$libs_string],
clean => {'FILES' =>
"Core.c"
},
INC => join(' ',
PDL::Core::Dev::PDL_INCLUDE(),
map {length($_) ? qq{"$_"} : ()} $pthread_include
Expand Down
2 changes: 1 addition & 1 deletion Basic/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EOT

WriteMakefile(
NAME => 'PDL',
VERSION_FROM => 'lib/PDL.pm',
VERSION_FROM => 'Core/Core.pm',
DIR => [qw(
Core Bad Ops Ufunc Primitive Slices Math MatrixOps
IO-Misc IO-Pnm
Expand Down
4 changes: 3 additions & 1 deletion Basic/lib/PDL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package PDL;
use strict;
use warnings;

# set the version:
# set the version - NB as of 2.096, the real version is in PDL::Core
our $VERSION = '2.095';
require PDL::Core;
$VERSION = $PDL::Core::VERSION;

=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion Basic/lib/PDL/Core/Dev.pm
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ sub _stdargs {
}
(
NAME => $mod,
VERSION_FROM => ($internal ? catfile($w, qw(PDL.pm)) : $src),
VERSION_FROM => ($internal ? catfile(dirname($w), qw(Core Core.pm)) : $src),
TYPEMAPS => [PDL_TYPEMAP()],
PM => {"$pref.pm" => "\$(INST_LIBDIR)/$pref.pm"},
MAN3PODS => {"$pref.pm" => "\$(INST_MAN3DIR)/$mod.\$(MAN3EXT)"},
Expand Down
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- PDL::PP::Dump removed - set $::PP_VERBOSE in .pd instead
- add IO::Misc::bswap16
- IO::Misc::bswap* now give error if try to swap more bytes than type-size
- the distro VERSION now comes from PDL::Core

2.095 2024-11-03
- add PDL_GENTYPE_IS_{REAL,FLOATREAL,COMPLEX,SIGNED,UNSIGNED}_##ppsym (#502)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ my %makefile_hash = (
},
MIN_PERL_VERSION => '5.014',
NAME => 'PDL',
VERSION_FROM => 'Basic/lib/PDL.pm',
VERSION_FROM => 'Basic/Core/Core.pm',
META_MERGE => {
"meta-spec" => { version => 2 },
resources => {
Expand Down

0 comments on commit 5965766

Please sign in to comment.