File tree 6 files changed +21
-16
lines changed
6 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
13
13
WriteMakefile(
14
14
%hash ,
15
15
%ldloadlibs ,
16
- VERSION_FROM => $file ,
16
+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
17
17
NO_MYMETA => 1,
18
18
);
19
19
Original file line number Diff line number Diff line change 1
1
do('../Config');
2
- our $VERSION = '0.14';
3
- pp_setversion($VERSION);
4
- $VERSION = eval $VERSION;
5
2
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
+ }
7
9
8
10
if ($config{CBLAS}){
9
11
pp_addhdr('#include <cblas.h>');
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
13
13
WriteMakefile(
14
14
%hash ,
15
15
%ldloadlibs ,
16
- VERSION_FROM => $file ,
16
+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
17
17
NO_MYMETA => 1,
18
18
);
19
19
Original file line number Diff line number Diff line change 1
1
do('../Config');
2
2
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
+ }
9
9
10
10
sub generate_code($){
11
11
if ($config{WITHOUT_THREAD}){
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $hash{INC} .= " $inc";
13
13
WriteMakefile(
14
14
%hash ,
15
15
%ldloadlibs ,
16
- VERSION_FROM => $file ,
16
+ VERSION_FROM => ' ../lib/PDL/LinearAlgebra.pm ' ,
17
17
NO_MYMETA => 1,
18
18
);
19
19
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
+ }
4
7
5
8
if ($^O =~ /MSWin/) {
6
9
pp_addhdr('
You can’t perform that action at this time.
0 commit comments