Ask a Question related to PERL Modules, Design and Development.
-
Jaap Karssenberg #1
how to avoid cpan indexing ?
I have a package that is supposed to go to cpan which contains a module
that is only needed at build/install time, so it isn't intended for
re-use and also it will never conflict with anything because it is
loaded in one special situation only. Previous experiences have learnt
me that cpan will index each and every .pm file and put it in the
database, thus my module will be indexed and cause pollution of the
database.
Now my question is, is there a way to avoid indexing, is there a way to
mark files as not to be indexed ? I see some examples use a "My::"
namespace, is this namespace perhaps special in some way ?
( please note that it isn't an option to simply give the file another
extension )
--
) ( Jaap Karssenberg || Pardus [Larus] | |0| |
: : [url]http://pardus-larus.student.utwente.nl/~pardus[/url] | | |0|
) \ / ( |0|0|0|
",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :) wannabe
Jaap Karssenberg Guest
-
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails
FYI Have problem Upgrading perl packages from CPAN.pm version v1.61 to version v1.76) failed with final error messages: <stuff snipped> CPAN.pm:... -
Listed in search.cpan.org but not www.cpan.org
Dear Y'all - I published the PeopleSoft.pm modules about a year ago and they're available via interactive CPAN and via the engine on... -
Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:... -
How to avoid this
Hi, I have a project where when the user scroll over the buttons a picture or movie display on the screen. All works fine, but moving between... -
Indexing PDF's using MS Indexing Service
Hi, I currently use MS Indexing Service to search my htm and aspx pages. I recently downloaded the IFilter tool from Adobe. When I now do a... -
Jim Keenan #2
Re: how to avoid cpan indexing ?
"Jaap Karssenberg" <j.g.karssenberg@student.utwente.nl> wrote in message
news:20040124151550.2e4ab25b@Captain...By indexing, do you mean [url]http://www.cpan.org/modules/01modules.index.html[/url] ?> I have a package that is supposed to go to cpan which contains a module
> that is only needed at build/install time, so it isn't intended for
> re-use and also it will never conflict with anything because it is
> loaded in one special situation only. Previous experiences have learnt
> me that cpan will index each and every .pm file and put it in the
> database, thus my module will be indexed and cause pollution of the
> database.
>
> Now my question is, is there a way to avoid indexing, is there a way to
> mark files as not to be indexed ? I see some examples use a "My::"
> namespace, is this namespace perhaps special in some way ?
>
Or do you mean a search engine such as search.cpan.org or
kobesearch.cpan.org?
The former simply lists distributions, not the .pm files inside each
distribution. So I'm going to assume you're talking about one or both of
the search engines.
What follows is *a* solution but not necessarily the best solution: Can you
put it in a t/Test directory? I suggest this because I notice that in each
of my 2 CPAN distributions, .pm files which I place in t/Test do not get
displayed on their distributions' respective main pages. They only appear
in the MANIFEST. On the other hand, sample .pm files which I did *not* put
in t/Test did get indexed. (Cf.
[url]http://search.cpan.org/~jkeenan/Data-Presenter-0.64/[/url])
I can't guarantee that this will work with modules which are needed at
points in the build/install process *other than* testing. Perhaps others
can provide a more definitive answer.
jimk
Jim Keenan Guest
-
Jaap Karssenberg #3
Re: how to avoid cpan indexing ?
X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Sat, 24 Jan 2004 17:05:26 GMT Jim Keenan wrote:
: By indexing, do you mean
: [url]http://www.cpan.org/modules/01modules.index.html[/url] ? Or do you mean a
: search engine such as search.cpan.org or kobesearch.cpan.org?
:
: The former simply lists distributions, not the .pm files inside each
: distribution. So I'm going to assume you're talking about one or both
: of the search engines.
I was talking about the PAUSE namespace indexer which I mistook for a
CPAN feature.
--
) ( Jaap Karssenberg || Pardus [Larus] | |0| |
: : [url]http://pardus-larus.student.utwente.nl/~pardus[/url] | | |0|
) \ / ( |0|0|0|
",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :) wannabe
Jaap Karssenberg Guest
-
Randy Kobes #4
Re: how to avoid cpan indexing ?
"Jaap Karssenberg" <j.g.karssenberg@student.utwente.nl> wrote in message
news:20040124151550.2e4ab25b@Captain...Could you just leave the private modules out of the distribution> I have a package that is supposed to go to cpan which contains a module
> that is only needed at build/install time, so it isn't intended for
> re-use and also it will never conflict with anything because it is
> loaded in one special situation only. Previous experiences have learnt
> me that cpan will index each and every .pm file and put it in the
> database, thus my module will be indexed and cause pollution of the
> database.
>
> Now my question is, is there a way to avoid indexing, is there a way to
> mark files as not to be indexed ? I see some examples use a "My::"
> namespace, is this namespace perhaps special in some way ?
>
> ( please note that it isn't an option to simply give the file another
> extension )
and generate them dynamically at the 'perl Makefile.PL' stage (eg,
have them in a __DATA__ section that gets printed out).
best regards,
randy kobes
Randy Kobes Guest
-
Slaven Rezic #5
Re: how to avoid cpan indexing ?
Jaap Karssenberg <j.g.karssenberg@student.utwente.nl> writes:
I see two solutions:> I have a package that is supposed to go to cpan which contains a module
> that is only needed at build/install time, so it isn't intended for
> re-use and also it will never conflict with anything because it is
> loaded in one special situation only. Previous experiences have learnt
> me that cpan will index each and every .pm file and put it in the
> database, thus my module will be indexed and cause pollution of the
> database.
>
> Now my question is, is there a way to avoid indexing, is there a way to
> mark files as not to be indexed ? I see some examples use a "My::"
> namespace, is this namespace perhaps special in some way ?
>
> ( please note that it isn't an option to simply give the file another
> extension )
* Put the "package" declaration in two lines. In this case the PAUSE
indexer will ignore the package:
package # hide from indexer
My::Module;
* I think you can put a "private" hash to the META.yml file, though I
don't know where to find more information about it.
Regards,
Slaven
--
Slaven Rezic - [email]slaven@rezic.de[/email]
BBBike - route planner for cyclists in Berlin
WWW version: [url]http://www.bbbike.de[/url]
Perl/Tk version for Unix and Windows: [url]http://bbbike.sourceforge.net[/url]
Slaven Rezic Guest
-
Norbert Gruener #6
Re: how to avoid cpan indexing ?
On Sun, Jan 25 2004, Slaven Rezic wrote:
[snipped]> Jaap Karssenberg <j.g.karssenberg@student.utwente.nl> writes:
>> > I have a package that is supposed to go to cpan which contains a module[snipped]>> > database.
> >
> > Now my question is, is there a way to avoid indexing, is there a way to
> > mark files as not to be indexed ? I see some examples use a "My::"
> > namespace, is this namespace perhaps special in some way ?
> I see two solutions:
>I am having the same problem and I am desperately searching for>
> * I think you can put a "private" hash to the META.yml file, though I
> don't know where to find more information about it.
information how to set up the META.yml file :-((
Where can I find more information about it ?
Cheers,
Norbert
--
Ceterum censeo | PGP encrypted mail preferred.
Redmond esse delendam. | PGP Key at [url]www.MPA-Garching.MPG.de/~nog/[/url]
Norbert Gruener Guest
-
Peter Hickman #7
Re: how to avoid cpan indexing ?
Norbert Gruener wrote:
perl Makefile.PL> I am having the same problem and I am desperately searching for
> information how to set up the META.yml file :-((
make
make dist
The last step will create the META.yml file for you.
Peter Hickman Guest
-
Norbert Gruener #8
Re: how to avoid cpan indexing ?
On Wed, Feb 04 2004, Peter Hickman wrote:
Yes, I know. But this does not solve the original question> Norbert Gruener wrote:>> >I am having the same problem and I am desperately searching for
> >information how to set up the META.yml file :-((
> perl Makefile.PL
> make
> make dist
>
> The last step will create the META.yml file for you.
"how to avoid cpan indexing"
But in the meantime I found out that this kind of problem is discussed
on the "Module-build-general" mailing list.
Thank you for your help.
Cheers,
Norbert
--
Ceterum censeo | PGP encrypted mail preferred.
Redmond esse delendam. | PGP Key at [url]www.MPA-Garching.MPG.de/~nog/[/url]
Norbert Gruener Guest



Reply With Quote

