[Xapian-tickets] [Xapian] #836: export PYTHONOPTIMIZE=2 breaks make install
Xapian
nobody at xapian.org
Sun Oct 27 21:59:44 GMT 2024
#836: export PYTHONOPTIMIZE=2 breaks make install
--------------------------------------+------------------------------------
Reporter: Дилян Палаузов | Owner: Richard Boulton
Type: defect | Status: new
Priority: normal | Milestone: 1.4.27
Component: Xapian-bindings (Python) | Version: 1.4.26
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------------------------+------------------------------------
Changes (by Olly Betts):
* version: => 1.4.26
* milestone: => 1.4.27
Comment:
It looks like the problem here is that forcing `PYTHONOPTIMIZE=2` also
affects the command which is trying to generate an unoptimised `.pyc` and
we instead generate `xapian/__pycache__/__init__.cpython-312.opt-2.pyc`
twice.
The simplest fix is probably for us to override `PYTHONOPTIMIZE` for that
command.
If you want a workaround for current releases then not setting
`PYTHONOPTIMIZE=2` and doing `sed -i 's/$(PYTHON3) -O/&2/'
python3/Makefile` after `configure` but before `make` should work.
--
Ticket URL: <https://trac.xapian.org/ticket/836#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list