Skip to content

DesmosomeOrg/p5-Alien-CPython3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Alien::CPython3 - Find or build Python

SYNOPSIS

From ExtUtils::MakeMaker:

use ExtUtils::MakeMaker;
use Alien::Base::Wrapper ();

WriteMakefile(
  Alien::Base::Wrapper->new('Alien::CPython3')->mm_args2(
    NAME => 'FOO::XS',
    ...
  ),
);

From Module::Build:

use Module::Build;
use Alien::Base::Wrapper qw( Alien::CPython3 !export );
use Alien::CPython3;

my $build = Module::Build->new(
  ...
  configure_requires => {
    'Alien::Base::Wrapper' => '0',
    'Alien::CPython3' => '0',
    ...
  },
  Alien::Base::Wrapper->mb_args,
  ...
);

$build->create_build_script;

From Inline::C / Inline::CPP script:

use Inline 0.56 with => 'Alien::CPython3';

From Dist::Zilla

[@Filter]
-bundle = @Basic
-remove = MakeMaker

[Prereqs / ConfigureRequires]
Alien::CPython3 = 0

[MakeMaker::Awesome]
header = use Alien::Base::Wrapper qw( Alien::CPython3 !export );
WriteMakefile_arg = Alien::Base::Wrapper->mm_args

Command line tool:

use Alien::CPython3;
use Env qw( @PATH );

unshift @PATH, Alien::CPython3->bin_dir;

DESCRIPTION

This distribution provides Python so that it can be used by other Perl distributions that are on CPAN. It does this by first trying to detect an existing install of Python on your system. If found it will use that. If it cannot be found, the source code will be downloaded from the internet and it will be installed in a private share location for the use of other modules.

SEE ALSO

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published