[Xapian-tickets] [Xapian] #689: python 3.5: .pyo files were renamed to .opt-1.pyc
Xapian
nobody at xapian.org
Sun Oct 4 21:28:30 BST 2015
#689: python 3.5: .pyo files were renamed to .opt-1.pyc
--------------------------------------+----------------------------
Reporter: ususdei | Owner: richard
Type: defect | Status: new
Priority: normal | Milestone: 1.3.x
Component: Xapian-bindings (Python) | Version: 1.3.2
Severity: normal | Resolution:
Keywords: python bindings | Blocked By:
Blocking: | Operating System: All
--------------------------------------+----------------------------
Comment (by ususdei):
Now in python3.5 an expression like
{{{#!python
importlib.util.cache_from_source('',
optimization=1).rpartition(imp.get_tag())[2]
}}}
seems to work, but cache_from_source() was added in python3.4 and the
optimization argument is new in python3.5.
So one still would have to check the version or wrap this in a
try...except and return the old ".pyo" on failure.
--
Ticket URL: <http://trac.xapian.org/ticket/689#comment:2>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list