[Xapian-tickets] [Xapian] #315: Avoid generating .pyc files in srcdir

Xapian nobody at xapian.org
Tue Apr 20 12:10:22 BST 2010


#315: Avoid generating .pyc files in srcdir
--------------------------+-------------------------------------------------
 Reporter:  richard       |       Owner:  richard  
     Type:  defect        |      Status:  new      
 Priority:  normal        |   Milestone:  1.2.x    
Component:  Build system  |     Version:  SVN trunk
 Severity:  minor         |    Keywords:           
Blockedby:                |    Platform:  All      
 Blocking:                |  
--------------------------+-------------------------------------------------
Changes (by olly):

  * milestone:  => 1.2.x


Comment:

 Another issue is that you can't just delete the build directory and have a
 clean source tree.

 A slightly mad solution: ship directories in the source tarball called
 testsuite.pyc, etc since Python will then fail to write the .pyc file
 (which isn't an error)!

 Python 2.6 adds a {{{-B}}} command line option (not easy to use) and
 {{{PYTHONDONTWRITEBYTECODE}}} environmental variable (more useful) to
 suppress generating .pyc and .pyo files.  I've committed a change to trunk
 to use this (r14337) but that doesn't help for Python < 2.6.

 Given it has been 17 months and we don't have a cleaner solution for all
 Python versions, I propose we either decide not to fix this further, or
 copy the files.  Marking for 1.2.x so this doesn't just linger in trac
 indefinitely.

-- 
Ticket URL: <http://trac.xapian.org/ticket/315#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list