[Xapian-tickets] [Xapian] #315: Avoid generating .pyc files in srcdir
Xapian
nobody at xapian.org
Mon Dec 8 08:33:36 GMT 2008
#315: Avoid generating .pyc files in srcdir
--------------------------+-------------------------------------------------
Reporter: richard | Owner: richard
Type: defect | Status: new
Priority: normal | Milestone:
Component: Build system | Version: SVN trunk
Severity: minor | Blockedby:
Platform: All | Blocking:
--------------------------+-------------------------------------------------
Currently, when the python bindings testsuite is run, .pyc files are
generated in the xapian-bindings/python/ srcdir. This could break
concurrent builds sharing a srcdir using different versions of python.
The only approach I've seen so far for fixing this is to copy the .py
files into builddir before running them, so that the .pyc files get
generated there. I'm hoping I'll come up with a cleaner solution soon.
Note that this isn't a problem if srcdir is not writable; in this
situation, python simply doesn't store the generated bytecode. There
don't seem to be any options to python to tell it not to generate
bytecode, however.
--
Ticket URL: <http://trac.xapian.org/ticket/315>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list