Skip to content

Commit

Permalink
PGPLOT stop accidentally finding own PGPLOT.pm from . in @inc - was l…
Browse files Browse the repository at this point in the history
…oading installed %PDL::Config
  • Loading branch information
mohawk2 committed Dec 8, 2019
1 parent 2d0f4a1 commit 46b3ee6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- PGPLOT stop accidentally finding own PGPLOT.pm from . in @INC - was loading installed %PDL::Config

2.019_05 2019-12-02
- calloc->malloc+memset, as calloc on Win32 = "free to wrong pool"
- memset after malloc in pdlapi.c
Expand Down
5 changes: 4 additions & 1 deletion Graphics/PGPLOT/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use strict;
use warnings;
use ExtUtils::MakeMaker;

eval { require PGPLOT };
eval {
local @INC = grep $_ ne '.', @INC;
require PGPLOT;
};
if ($@) {
write_dummy_make("Not building PDL::Graphics::PGPLOT, PGPLOT not installed");
return;
Expand Down

0 comments on commit 46b3ee6

Please sign in to comment.