Skip to content

Commit

Permalink
require PDL 2.055, simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 15, 2024
1 parent a5b5f10 commit b57f2dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion META.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"runtime" : {
"requires" : {
"PDL" : "2.008",
"PDL" : "2.055",
"perl" : "5.010"
}
},
Expand Down
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ my %WriteMakefileArgs = (
"MIN_PERL_VERSION" => "5.010",
"NAME" => "PDL::DSP::Windows",
"PREREQ_PM" => {
"PDL" => "2.008"
"PDL" => "2.055"
},
"TEST_REQUIRES" => {
"Capture::Tiny" => 0,
Expand All @@ -37,7 +37,7 @@ my %FallbackPrereqs = (
"Capture::Tiny" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"PDL" => "2.008",
"PDL" => "2.055",
"Test::More" => "0.96",
"Try::Tiny" => 0
);
Expand Down
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requires 'PDL' => '2.008';
requires 'PDL' => '2.055';

feature dpss => 'Support for DPSS windows' => sub {
recommends 'PDL::LinearAlgebra::Special';
Expand Down
5 changes: 1 addition & 4 deletions lib/PDL/DSP/Windows.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ use constant {
HAVE_LinearAlgebra => eval { require PDL::LinearAlgebra::Special } || 0,
HAVE_BESSEL => eval { require PDL::GSLSF::BESSEL } || 0,
HAVE_GNUPLOT => eval { require PDL::Graphics::Gnuplot } || 0,
I => version->parse($PDL::VERSION) > v2.054 ? PDL::Core::pdl('i') : do {
require PDL::Complex; # Deprecated in 2.055
PDL::Complex::i();
},
I => PDL::Core::pdl('i'),
};

# These constants are left in our namespace for historical reasons
Expand Down

0 comments on commit b57f2dd

Please sign in to comment.