python3 and /usr/share
Hi, I am trying to create packages for Python3 for the source package [1]. Following the guide [2], I get some success. However, the packages for Python2 and Python3 differ significantly: in the Python2 package, all machine independent data go into /usr/share/, while the Python3 package contains everything under /usr/lib/python3. Is this intentional, or shall I change something in the rules to get a proper layout? I've investigated some other python3 packages, they all put everything in /usr/lib/python3/. However, this seems to contradict the FHS? What is the way to go here? I've uploaded the package to debian-mentors [3], in case one wants to review it. Best regards Ole [1] python-astropy, http://bugs.debian.org/678168 [2] http://wiki.debian.org/Python/LibraryStyleGuide [3] http://mentors.debian.net/package/python-astropy -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ytzppzv2gph@news.ole.ath.cx
Re: python3 and /usr/share
Am 20.02.2013 15:38, schrieb Olе Streicher: Hi, I am trying to create packages for Python3 for the source package [1]. Following the guide [2], I get some success. However, the packages for Python2 and Python3 differ significantly: in the Python2 package, all machine independent data go into /usr/share/, while the Python3 package contains everything under /usr/lib/python3. Having /usr/share/pyshared in Python2 is an implementation detail. This is never used on sys.path directly. Is this intentional, or shall I change something in the rules to get a proper layout? I've investigated some other python3 packages, they all put everything in /usr/lib/python3/. This is correct. However, this seems to contradict the FHS? What is the way to go here? No, the FHS doesn't make any statement about code in /usr/share. Matthias -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5124e393.8010...@debian.org
Re: python3 and /usr/share
On 20 February 2013 14:38, Olе Streicher debian-de...@liska.ath.cx wrote: I am trying to create packages for Python3 for the source package [1]. Following the guide [2], I get some success. However, the packages for Python2 and Python3 differ significantly: in the Python2 package, all machine independent data go into /usr/share/, while the Python3 package contains everything under /usr/lib/python3. The Python code itself goes into /usr/lib/python3 now - as I understand it, /usr/share/pyshared was a workaround that's not needed for Python 3. If the package includes actual data files, they should still go into /usr/share. If it has a lot of data files, it might be worth splitting them into a -data or -common package that the Python 2 3 packages both depend on. IPython matplotlib both use this: ipython3-notebook depends on ipython-notebook-common, and python3-matplotlib depends on python-matplotlib-data. Best wishes, Thomas
Re: python3 and /usr/share
On Feb 20, 2013, at 03:38 PM, Olе Streicher wrote: I am trying to create packages for Python3 for the source package [1]. Following the guide [2], I get some success. However, the packages for Python2 and Python3 differ significantly: in the Python2 package, all machine independent data go into /usr/share/, while the Python3 package contains everything under /usr/lib/python3. If you use the dh_python{2,3} helpers as described in [2], you generally don't have to worry about such implementation details. [2] http://wiki.debian.org/Python/LibraryStyleGuide Cheers, -Barry -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130220101303.5e141...@anarchist.wooz.org