<p dir="ltr"><br>
On Aug 19, 2015 8:10 PM, &quot;Parag Nemade&quot; &lt;<a href="mailto:panemade@gmail.com">panemade@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; On Wed, Aug 19, 2015 at 12:29 AM, Matthew Miller<br>
&gt; &lt;<a href="mailto:mattdm@fedoraproject.org">mattdm@fedoraproject.org</a>&gt; wrote:<br>
&gt; &gt; On Tue, Aug 18, 2015 at 01:22:59PM +0530, Parag Nemade wrote:<br>
&gt; &gt;&gt;    Sometimes I get confused how to handle naming of a package where<br>
&gt; &gt;&gt; package itself provides a nodejs or python library and wrapper/tool to<br>
&gt; &gt;&gt; use that library.<br>
&gt; &gt;&gt;    We have guidelines where it says if source is library from npmjs or<br>
&gt; &gt;&gt; pypi then we should prefix package with nodejs or python but how to<br>
&gt; &gt;&gt; name when source contains both?<br>
&gt; &gt;&gt;    What gets precedence? name them with prefixes or just by tool name<br>
&gt; &gt;&gt; or library name?<br>
&gt; &gt;<br>
&gt; &gt; Subpackages are definitely the answer here. There are still several<br>
&gt; &gt; rational options. If the tool is primary, making the main package be<br>
&gt; &gt; the upstream name (&quot;foobar&quot;) makes sense, with subpackage for the<br>
&gt; &gt; library (&quot;python3-foobar&quot;, &quot;foobar-libs&quot;). If the library is primary,<br>
&gt; &gt; though, you might want to go for &quot;libfoobar&quot; and &quot;libfoobar-tools&quot;.<br>
&gt;<br>
&gt; Thanks. I have too followed same thing for some of my packages<br>
&gt; recently. Here what I want is, is this written somewhere? Just to give<br>
&gt; reference to package submitter if he want some official source during<br>
&gt; package review.<br>
&gt;<br>
&gt; I can&#39;t find such explanation in python packaging guidelines wiki page<br>
&gt; and also not in<br>
&gt; <a href="https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Addon_Packages_.28python3_modules.29">https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Addon_Packages_.28python3_modules.29</a><br>
&gt; page.<br>
&gt;<br>
&gt; Can some one if possible add this naming information there? Or do I<br>
&gt; need to file a ticket on fpc for this?<br>
&gt;<br>
In current guidelines, libraries and applications are allowed to mix in the same (sub)package.  For c packages, we&#39;ve slowly gotten away from this practice due to multi lib.  But no such technical reason for demanding packages split binary and library exists for python, ruby, Perl, nodejs, etc.</p>
<p dir="ltr">It&#39;s (a little) more work to split every package that ships a small script along with its library.  So traditionally we don&#39;t make that demand..  if the application is important enough and the library is just implementation detail then we have the package ship everything under a non-prefixed name.  If the library is most important and the script is along the lines of a usable example of what you can do with the library then we use the python- prefix.  We don&#39;t really talk about the case where application and library are of equal value but packagers are expected to use good judgement and probably should use subpackages to address the situation.</p>
<p dir="ltr">There is a lot of grey area between these three points of interest.  I wouldn&#39;t be opposed to the guidelines being updated to either eliminate some of them  (for instance, libraries and &quot;binaries&quot; must always be in separate subordinates) or for a more comprehensive description of when to use each style of packaging.  I&#39;d only ask that this be applied to all packages, not just python and nodejs.  It really is a style issue that should apply to similar packages in all languages.</p>
<p dir="ltr">-Toshio</p>