package includes *.py[co] files

Bug #36733 reported by Matthias Klose
14
Affects Status Importance Assigned to Milestone
adonthell (Ubuntu)
Invalid
Medium
Unassigned
cubictemp (Ubuntu)
Fix Released
Undecided
Unassigned
gdesklets-data (Ubuntu)
Fix Released
Undecided
Unassigned
gnome-python-extras (Ubuntu)
Fix Released
Undecided
Unassigned
gnupginterface (Ubuntu)
Fix Released
Undecided
Unassigned
hamlib (Ubuntu)
Fix Released
Undecided
Unassigned
pykdeextensions (Ubuntu)
Fix Released
Undecided
Unassigned
pyragua (Ubuntu)
Fix Released
Undecided
Unassigned
python-adodb (Ubuntu)
Invalid
Undecided
Unassigned
python-gnome2 (Ubuntu)
Invalid
Low
Unassigned
rubber (Ubuntu)
Fix Released
Undecided
Unassigned
serpento (Ubuntu)
Fix Released
Undecided
Unassigned
viewcvs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

please remove these from the package and use dh_python to generate/remove them.

Revision history for this message
Adam Buchbinder (adam-buchbinder) wrote :

Which package includes *.py[co] files? I see <a href="http://packages.ubuntu.com/cgi-bin/search_contents.pl?word=.pyc&searchmode=searchword&case=insensitive&version=dapper&arch=i386">a lot of them</a>, but maybe generated files show up in that list as well.

Revision history for this message
trollord (trollenlord) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the package name, under the Affects column, and change the Status back to "New". Thanks again!

Revision history for this message
Daniel Hahler (blueyed) wrote :

"apt-file search -l -x '\.pyc$'" gives the following list (on Gutsy):
adonthell
pykdeextensions
pyragua
python-adodb
python-cubictemp
python-gnome2-extras-dev
python-gnupginterface
python-pisock-dbg
rubber
serpento
viewcvs

I think we should add all this packages to this bug, ok?

Revision history for this message
Daniel Hahler (blueyed) wrote :

Sorry, missed "*.pyo".

The full list according to the bug would be:
$ apt-file search -l -x '\.py[co]$'
adonthell
gdesklets-data
pykdeextensions
pyragua
python-adodb
python-cubictemp
python-gnome2-extras-dev
python-gnupginterface
python-libhamlib2
python-pisock-dbg
rubber
serpento
viewcvs

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 36733] Re: package includes *.py[co] files

Hi Daniel,

dAniel hAhler [2007-08-22 23:05 -0000]:
> I think we should add all this packages to this bug, ok?

Right, please do.

Revision history for this message
trollord (trollenlord) wrote :

Not all existed in Launchpad, I added the ones that seemingly do.

Daniel Hahler (blueyed)
Changed in cubictemp:
status: New → Confirmed
Changed in gdesklets-data:
status: New → Confirmed
Changed in gnome-python-extras:
status: New → Confirmed
Changed in gnupginterface:
status: New → Confirmed
Changed in hamlib:
status: New → Confirmed
Changed in pykdeextensions:
status: New → Confirmed
Changed in pyragua:
status: New → Confirmed
Changed in python-adodb:
status: New → Confirmed
Changed in python-gnome2:
status: New → Confirmed
Changed in rubber:
status: New → Confirmed
Changed in serpento:
status: New → Confirmed
Changed in viewcvs:
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks like the python-gnome2 version in gutsy is not shipping any .py[co]. What binary package did you find buggy?

Changed in python-gnome2:
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

gnome-python-extras (2.19.1-0ubuntu2) gutsy; urgency=low

  * debian/rules:
    - correctly clean .pyc and .pyo (LP: #36733)

 -- Sebastien Bacher <email address hidden> Fri, 24 Aug 2007 11:13:35 +0200

Changed in gnome-python-extras:
status: Confirmed → Fix Released
Revision history for this message
Michael Bienia (geser) wrote :

cubictemp (0.4-2ubuntu1) gutsy; urgency=low

  * Rebuild to remove *.pyc files (LP: #36733)
  * Update to current python-support usage.
  * debian/control: Modify Maintainer value to match
    DebianMaintainerField spec.

 -- Michael Bienia <email address hidden> Fri, 24 Aug 2007 13:19:00 +0200

Changed in cubictemp:
status: Confirmed → Fix Released
Revision history for this message
Michael Bienia (geser) wrote :

Debdiff for gnupginterface. The changes are:

gnupginterface (0.3.2-9ubuntu1) gutsy; urgency=low

  * Rebuild to remove the .pyc file (LP: #36733)
  * debian/control:
    + Update to current python-support usage.
    + Modify Maintainer value to match DebianMaintainerField spec.
  * setup.py: Rename the licence field to license as suggested by the warning.

 -- Michael Bienia <email address hidden> Fri, 24 Aug 2007 01:47:09 +0200

Revision history for this message
Daniel Hahler (blueyed) wrote :

I have probably confused python-gnome2 with python-gnome2-extras-dev (which gets provided by gnome-python-extras)

Changed in python-gnome2:
status: Incomplete → Invalid
Revision history for this message
Matthias Klose (doko) wrote :

pykdeextensions (0.4.0-4ubuntu2) gutsy; urgency=low

  * Fix build failure, build-depend on python-qt-dev.
  * Use the unversioned python interpreter for scripts.
  * Don't include byte-compiled files. LP: #36733.
  * libpythonize0: Remove dependency on python2.5-dev. LP: #84689.

 -- Matthias Klose <email address hidden> Wed, 29 Aug 2007 20:48:25 +0000

Changed in pykdeextensions:
status: Confirmed → Fix Released
Revision history for this message
Michael Bienia (geser) wrote :

gnupginterface (0.3.2-9ubuntu1) gutsy; urgency=low

  * Rebuild to remove the .pyc file (LP: #36733)
  * debian/control:
    + Update to current python-support usage.
    + Modify Maintainer value to match DebianMaintainerField spec.
  * setup.py: Rename the licence field to license as suggested by the warning.

 -- Michael Bienia <email address hidden> Fri, 24 Aug 2007 01:47:09 +0200

Changed in gnupginterface:
status: Confirmed → Fix Released
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

pyragua (0.2.2-1ubuntu1) gutsy; urgency=low

  * Modify Maintainer value to match the DebianMaintainerField specification.
  * Switch to python-support, don't install *.pyc files anymore. (LP: #36733)

 -- Lionel Le Folgoc <email address hidden> Mon, 03 Sep 2007 21:16:56 +0200

Changed in pyragua:
status: Confirmed → Fix Released
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

serpento (0.4.1ubuntu5) gutsy; urgency=low

  * Don't include byte-compiled files. (LP: #36733)
  * Modify Maintainer value to match DebianMaintainerField spec

 -- Lionel Porcheron <email address hidden> Tue, 04 Sep 2007 22:44:17 +0200

Changed in serpento:
status: Confirmed → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Nothing left to sponsor, unsubscribing Sponsors.

Changed in gdesklets-data:
assignee: nobody → christophe-sauthier
Changed in viewcvs:
assignee: nobody → norsetto
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

viewcvs (0.9.2+cvs.1.0.dev.2004.07.28-4.1ubuntu1) gutsy; urgency=low

  * Remove the .pyc files (LP: #36733)
    - debian/rules:
      + remove installation of byte-compiled files
      + remove dh_python call
    - debian/control:
      + Update to current python-support usage.
      + Modify Maintainer value to match DebianMaintainerField spec.

 -- Cesare Tirabassi <email address hidden> Fri, 14 Sep 2007 14:12:39 +0200

Changed in viewcvs:
assignee: norsetto → nobody
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

viewcvs (0.9.2+cvs.1.0.dev.2004.07.28-4.1ubuntu1) gutsy; urgency=low

  * Remove the .pyc files (LP: #36733)
    - debian/rules:
      + remove installation of byte-compiled files
      + remove dh_python call
    - debian/control:
      + Update to current python-support usage.
      + Modify Maintainer value to match DebianMaintainerField spec.

 -- Cesare Tirabassi <email address hidden> Fri, 14 Sep 2007 14:12:39 +0200

Changed in viewcvs:
status: Confirmed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

viewcvs is obsolete and being removed. It would be useful to check it's replacement, viewvc to see if it has the same problem.

Changed in viewcvs:
status: Fix Released → Invalid
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

The binary packages of viewvc are built correctly (no .pyc or .pyo).

Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :
Changed in gdesklets-data:
status: Confirmed → In Progress
Changed in gdesklets-data:
assignee: christophe-sauthier → nobody
status: In Progress → Confirmed
Revision history for this message
Miguel Ruiz (mruiz) wrote :

I downloaded the rubber source package and it doesn't have .pyc nor .pyo files. Then, I'm setting its status as invalid.

Cheers!

Changed in rubber:
status: Confirmed → Invalid
Revision history for this message
Miguel Ruiz (mruiz) wrote :

I downloaded the hamlib source package and it doesn't have .pyc nor .pyo files. Then, I'm setting its status as invalid.

Cheers!

Changed in hamlib:
status: Confirmed → Invalid
Revision history for this message
Miguel Ruiz (mruiz) wrote :

I downloaded the python-adodb source package and it doesn't have .pyc nor .pyo files. Then, I'm setting its status as invalid.

Cheers!

Changed in python-adodb:
status: Confirmed → Invalid
Revision history for this message
Miguel Ruiz (mruiz) wrote :

I downloaded the adonthell source package and it doesn't have .pyc nor .pyo files. Then, I'm setting its status as invalid.

Cheers!

Changed in adonthell:
status: Confirmed → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

Miguel, that wasn't the point. *Binary* packages are not supposed to ship *.py[co] files, and at least rubber does.

Changed in rubber:
status: Invalid → Confirmed
Changed in hamlib:
status: Invalid → Confirmed
Changed in python-adodb:
status: Invalid → Confirmed
Changed in adonthell:
status: Invalid → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

daniel@bert:~$ dpkg -c adonthell_0.3.4.cvs.20050813-3ubuntu1_amd64.deb | grep pyc
-rw-r--r-- root/root 1756 2007-06-03 03:54 ./usr/share/games/adonthell/modules/dialogue.pyc
-rw-r--r-- root/root 174741 2007-06-03 03:54 ./usr/share/games/adonthell/modules/adonthell.pyc
daniel@bert:~$ dpkg -c adonthell_0.3.4.cvs.20050813-3ubuntu1_amd64.deb | grep pyo
daniel@bert:~$

Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

gdesklets-data (0.35.6-1ubuntu1) gutsy; urgency=low

  * Removal of the .pyo files (LP: #36733)
    - Removal of the .pyo files in the base64 encoded binary of
      psi-seti/Install_Seti_Sensor.bin
      (using a patch called 01_Sensor_Psi_seti.patch)

  * Cleanup/update of debian/control
    - Modify Maintener value to match DebianMaintenerField spec.
    - Update of the python-support package to >= 0.5.3

  * Cleanup of the package
    - Removal of a swap file in the base64 encoded binary
      Imonc-0.2.2/Install_Imonc_Sensor.bin that causes a warning in lintian
      (using a patch called 01_Sensor_Imonc.patch)
    - Removal of a swap file in the base64 encoded binary
      ExternIP/Install_ExternIP_Sensor.bin that causes a warning in lintian
      (using a patch called 01_Sensor_ExternalIP.patch)

 -- Christophe Sauthier <email address hidden> Thu, 20 Sep 2007 00:45:56 +0200

Changed in gdesklets-data:
status: Confirmed → Fix Released
Changed in rubber:
assignee: nobody → christophe-sauthier
status: Confirmed → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :

Unsubscribing Ubuntu Sponsors for universe from this bug as there are no patches that need uploading atm.

Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

rubber (1.1-2.1ubuntu1) gutsy; urgency=low

  * Remove the .pyc files (LP: #36733)
  * debian/control
    - Update to current python-support usage
    - Modify Maintainer value to match Debian-Maintainer-Field Spec

-- Christophe Sauthier <email address hidden> Fri, 28 Sep 2007 00:00:
06 +0200

Changed in rubber:
assignee: christophe-sauthier → nobody
status: In Progress → Confirmed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Christophe,

your change will indeed solve the *.pyc problem, however note that the *.pyc will not be generated during installation unless you add python-central or python-support or a custom script to handle this.
Note as well that you have to add proper support so that the substvars will be substituded properly.
If you check it with

dpkg --info buildresult/rubber_1.1-2.1ubuntu1_all.deb

you will see that there is no dependancy on python and the Python-Version: field remains {python:Versions}.

Please refer to:

http://wiki.debian.org/DebianPython/NewPolicy

and the Debian Python Policy manual:

http://www.debian.org/doc/packaging-manuals/python-policy/

Please resubscribe u-u-s once this is corrected.

Changed in rubber:
assignee: nobody → christophe-sauthier
status: Confirmed → Incomplete
Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

I am not that I have corrected well all the problems (in particular the dependency to python and the Python-Version....) . Anyway here is my current debdiff, that fixes the postint problem with python-support :

rubber (1.1-2.1ubuntu1) gutsy; urgency=low

  * Remove the .pyc files (LP: #36733)
    - Added dependency to python-support
    - debian/control
      + addition of XB-Python-Version
    - debian/rules
      + addition of a call to dh_pysupport in debian/rules
      + modification of the install target to delete the pyc before packaging
  * Modify Maintainer value to match Debian-Maintainer-Field Spec

 -- Christophe Sauthier <email address hidden> Tue, 2 Oct 2007 14:34:36 +0200

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Can you check the rules file?
Unless it is on-purpose, it seems that there is a duplicated directory:

/usr/share/rubber/rubber/rules/

perhaps should be:

/usr/share/rubber/rules/

Since the other is:

/usr/share/rubber/modules/

Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

rubber (1.1-2.1ubuntu1) gutsy; urgency=low

  * Remove the .pyc files (LP: #36733)
    - Added dependency to python-support
    - debian/control
      + addition of XB-Python-Version
    - debian/rules
      + addition of a call to dh_pysupport in debian/rules
      + modification of the install target to delete the pyc before packaging
  * Modify Maintainer value to match Debian-Maintainer-Field Spec

 -- Christophe Sauthier <email address hidden> Tue, 2 Oct 2007 14:27:38 +0200

Changed in rubber:
status: Incomplete → Fix Released
Revision history for this message
Christophe Sauthier (christophe.sauthier) wrote :

OK Cesare, I'll try to have a look at that too...

Changed in rubber:
assignee: christophe-sauthier → nobody
Changed in python-adodb:
status: Confirmed → Invalid
Changed in adonthell:
status: Confirmed → Invalid
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

hamlib (1.2.6.1-1ubuntu2) hardy; urgency=low

  * Remove bytecompiled modules from the python-libhamlib2 package
   (LP: #36733):
    - in debian/rules:
      + change rm to remove Hamlib.py? instead of only Hamlib.pyc
      + add -ppython-libhamlib2 to dh_pysupport call

 -- Cesare Tirabassi <email address hidden> Mon, 19 Nov 2007 12:45:29 +0100

Changed in hamlib:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.