Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build project before launch task #2628

Open
hurricup opened this issue Mar 12, 2023 · 6 comments
Open

Add build project before launch task #2628

hurricup opened this issue Mar 12, 2023 · 6 comments

Comments

@hurricup
Copy link
Collaborator

If we have a Makefile.PL we need to run it with make

image

@rwp0
Copy link
Contributor

rwp0 commented Mar 12, 2023

Actually we do perl Makefile.PL, and then run make on the generated Makefile.

And that's only for ExtUtils-MakeMaker distributions.

For Module-Build distributions we do:

perl Build.PL
./Build
./Build test
./Build install

instead.

The latter, being pure Perl, doesn't require the make utility to be present (which may be absent on Windows).

Both of these are core Perl distribution builders.

@hurricup
Copy link
Collaborator Author

Looks like there are several build systems we need to support: ExtUtils::MakeMaker, Module::Build, Dist::Zilla (which is just a proxy to the MakeMaker in terms of building as far as I understand, but still)

Also there is an issue with prove, see Perl-Toolchain-Gang/Test-Harness#117

@hurricup
Copy link
Collaborator Author

perl on windows may have make or dmake. Msys2 helps a lot with this.

@rwp0
Copy link
Contributor

rwp0 commented Mar 12, 2023

Dist::Zilla (which is just a proxy to the MakeMaker in terms of building as far as I understand, but still)

Dist-Zilla can be a front-end to many things including ExtUtils-MakeMaker and Module-Build.

It just has a lot of built-in and external plugins that can do almost anything imaginable.

@hurricup
Copy link
Collaborator Author

I expect a lot of problems with Dist::Zilla because it makes/runs tests in the build sandbox. Not sure how to handle that yet. Probably will need to map stuff like coverage/profiling/debugging

@rwp0
Copy link
Contributor

rwp0 commented Mar 12, 2023

I expect a lot of problems with Dist::Zilla because it makes/runs tests in the build sandbox. Not sure how to handle that yet. Probably will need to map stuff like coverage/profiling/debugging

Yes, it's not in the core, and has a lot of dependencies, Moose included.

So I think it might be better to start supporting ExtUtils-MakeMaker and Module-Build as the Perl build systems at the initial phase.

What I personally do is just create run configurations for Dist-Zilla to be run in the IDE's Run window which is being almost always just enough for my use case.

So a plain menu with those four command could suffice for now:

dzil build
dzil install
dzil release
dzil clean

@hurricup hurricup modified the milestones: 2023.1, 2023.2 Apr 1, 2023
@hurricup hurricup modified the milestones: 2023.2, 2023.3 Jul 27, 2023
@hurricup hurricup modified the milestones: 2023.3, 2024.1 Jan 16, 2024
@hurricup hurricup modified the milestones: 2024.1, 2024.2 Apr 9, 2024
@hurricup hurricup removed this from the 2024.2 milestone Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants