File tree Expand file tree Collapse file tree 6 files changed +21
-16
lines changed
Expand file tree Collapse file tree 6 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313WriteMakefile(
1414 %hash ,
1515 %ldloadlibs ,
16- VERSION_FROM => $file ,
16+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
1717 NO_MYMETA => 1,
1818);
1919
Original file line number Diff line number Diff line change 11do('../Config');
2- our $VERSION = '0.14';
3- pp_setversion($VERSION);
4- $VERSION = eval $VERSION;
52
6- use PDL::Exporter;
3+ { # required because PAUSE will reject undefined $VERSION
4+ require ExtUtils::MM;
5+ my $MM = bless { NAME => 'Fake' }, 'MM';
6+ my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
7+ pp_setversion($global_version);
8+ }
79
810if ($config{CBLAS}){
911 pp_addhdr('#include <cblas.h>');
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313WriteMakefile(
1414 %hash ,
1515 %ldloadlibs ,
16- VERSION_FROM => $file ,
16+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
1717 NO_MYMETA => 1,
1818);
1919
Original file line number Diff line number Diff line change 11do('../Config');
22
3- our $VERSION = '0.14';
4- pp_setversion($VERSION) ;
5- $VERSION = eval $VERSION ;
6-
7- use PDL::Exporter ;
8- use PDL::Types qw(ppdefs_all);
3+ { # required because PAUSE will reject undefined $VERSION
4+ require ExtUtils::MM ;
5+ my $MM = bless { NAME => 'Fake' }, 'MM' ;
6+ my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
7+ pp_setversion($global_version) ;
8+ }
99
1010sub generate_code($){
1111 if ($config{WITHOUT_THREAD}){
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
1313WriteMakefile(
1414 %hash ,
1515 %ldloadlibs ,
16- VERSION_FROM => $file ,
16+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
1717 NO_MYMETA => 1,
1818);
1919
Original file line number Diff line number Diff line change 1- our $VERSION = '0.14';
2- pp_setversion($VERSION);
3- $VERSION = eval $VERSION;
1+ { # required because PAUSE will reject undefined $VERSION
2+ require ExtUtils::MM;
3+ my $MM = bless { NAME => 'Fake' }, 'MM';
4+ my $global_version = $MM->parse_version('../lib/PDL/LinearAlgebra.pm');
5+ pp_setversion($global_version);
6+ }
47
58if ($^O =~ /MSWin/) {
69pp_addhdr('
You can’t perform that action at this time.
0 commit comments