Hi!

!)

CHORNY [...] cpan.org> If module cannot work on Windows, you can die in 
Makefile.PL/Build.PL.

You about this:

http://wiki.cpantesters.org/wiki/CPANAuthorNotes
==
. . .
Devel-AssertOS is an experimental tool that you can bundle with your distribution in an inc/ directory and use in your Makefile.PL or Build.PL to die with the appropriate message if not on a supported OS:

# in a Makefile.PL or Build.PL
use lib 'inc';
use Devel::AssertOS qw(Linux FreeBSD Cygwin);
. . .
==


?


I.e.  You think this is good practic?


IMHO, this is is _terrible_ method

For example see what need do for skip this psevdo-asserts :


http://vvm.blog.tut.by/2011/05/18/mini-how-to-practically-method-to-install-assp-v2-x-on-windows-x64-by-strawberry-perl-v5-12-2-x64/
==
Run:
cpanp z Image::OCR::Tesseract

Not close command line, but run editor as another process

Open
C:\strawberry\cpanplus\5.12.3\build\Image-OCR-Tesseract-1.24\Makefile.PL
in editor

replace
==
use lib inc; #__assertexe__#
use Devel::AssertOS qw(Unix Linux);
use Devel::AssertEXE qw(tesseract convert); #__assertexe__#
==
to
==
# Skip Win Os check  # use lib inc; #__assertexe__#
# Skip Win Os check  # use Devel::AssertOS qw(Unix Linux);
# Skip Win Os check  # use Devel::AssertEXE qw(tesseract convert); 
#__assertexe__#
==

Save file Makefile.PL

Swith to cpanp process and run:
cpanp i .
===


( Why psevdo? Because OCR based on Tesseract _work_ on Windows, may be not all theatures, but subset needed for antispam ASSP )



b)

Gabor> it would be nice if any of you could comment on this:
Gabor>
Gabor> http://blogs.perl.org/users/gabor_szabo/2013/01/anyeventforkmanager-stuck-on-strawberry-but-not-on-activeperl.html
Gabor>

I'm don't undestand:
AnyEvent::ForkManager stuck on Strawberry but not on ActivePerl?

need be read as:

On ActivePerl the test fails.

on Strawberry Perl the tests get stuck

or ?

I.e. test not work on _both_ ActivePerl and SB ?



b2)

This:

http://blogs.perl.org/users/gabor_szabo/2013/01/13-of-cpan-distributions-dont-have-a-test-report-on-windows.html
==
Gabor Szabo | January 4, 2013 2:24 PM | Reply
@PEVANS, Thanks for that link.

In the last 4 weeks I have been running CPAN smoking using CPAN::Reporter::Smoker on two copies of Strawberry Perl on a Windows XP running in a VirtualBox.

Every few hours I notice at least one of them is stuck. Then I spend a 5-20 minutes checking which distribution caused the problem and if the problem happens on both versions of Perl. Sometimes I even try to figure out which test causes the problem.

==

related Youre message?



Best regards, Victor Miasnikov
Blog:  http://vvm.blog.tut.by/



Reply via email to