Alien-CPython3
view release on metacpan or search on metacpan
start_url 'https://www.python.org/downloads/macos/';
# Using universal2 installer.
plugin Download => (
filter => qr/python-([0-9\.]+)-macos11.pkg/,
version => qr/([0-9\.]+)/,
);
extract sub {
my ($build) = @_;
Alien::Build::CommandSequence->new([
qw(pkgutil --expand-full),
$build->install_prop->{download},
'python'
])->execute($build);
};
patch sub {
my ($build) = @_;
my @children = Path::Tiny->cwd->children;
$_->remove_tree for grep { $_->basename ne 'Python_Framework.pkg' } @children;
( run in 0.936 second using v1.01-cache-2.11-cpan-5b529ec07f3 )