Re: Naming of Python 3 binaries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/25/2015 09:20 AM, Juan Orti Alcaine wrote:
> 2015-11-25 14:34 GMT+01:00 Stephen Gallagher <sgallagh@xxxxxxxxxx 
> <mailto:sgallagh@xxxxxxxxxx>>:
> 
> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> 
> On 11/25/2015 07:16 AM, Juan Orti Alcaine wrote:
>> Hi,
>> 
>> I'm reading the guidelines about the naming of conflicting 
>> python2/python3 binaries [1], and I have doubts about if it is
>> up to date. It says: "The unversioned executable must be the
>> python2 version.", is this still true? In the example shown some
>> lines before, the unversioned binary goes to the python3
>> package.
> 
> IIRC, this is specific to tools for python itself. So things like 
> /usr/bin/python and /usr/bin/easy_install must be the python 2 
> version. For end-user packages, the current policy for F22+ is
> that they must be the python 3 version.
> 
> 
> ​Ok, thanks. It's not clear from reading the policy.
> 

After a discussion with Toshio on IRC, I realize that I failed to
clarify an important point:

This part of the policy is only important if you *must* ship binaries
for both python 2 and python 3. In most cases (for end-user
applications), this is not the case. You should only ship different
versions of the binary if they are truly version-specific (such as the
easy_install example, where the two versions need to operate ON python
rather than just consuming python).

If your app is capable of running the same way under both Python 2 and
Python 3, Fedora's policy is that you should ship *only* the python 3
version of the executable (so that they don't conflict). If your app
must ship a binary for both, then they should follow the versioning
rules you mentioned and the unversioned package should be the python 2
version.


Perhaps it would be better if you provided your specific example case
so we can help you make the right choice here, rather than me trying
to speak in broad generalizations.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlZV04YACgkQeiVVYja6o6MNjACfXJp5GmSjw5tetR9ZNVAQVtix
IaYAn0KxVNUtAt9HJXCIGc2/ADx1oepP
=YzrN
-----END PGP SIGNATURE-----
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/packaging@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux