[Xapian-tickets] [Xapian] #835: ./configure --prefix=/ ignored when --with-python3 is used
Xapian
nobody at xapian.org
Sat Oct 26 20:31:10 BST 2024
#835: ./configure --prefix=/ ignored when --with-python3 is used
--------------------------------------+------------------------------------
Reporter: Дилян Палаузов | Owner: Richard Boulton
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Xapian-bindings (Python) | Version: 1.4.26
Severity: normal | Resolution: wontfix
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------------------------+------------------------------------
Changes (by Olly Betts):
* status: new => closed
* resolution: => wontfix
Comment:
That's a deliberate choice - we ignore configure's prefix for some files
and instead install in the location which the interpreter/toolchain for
the target language tells us it will look for bindings in (as documented
in `INSTALL`).
If we installed under configure's prefix the bindings would typically not
work without extra configuration (for Python, setting `PYTHONPATH` is one
way). It's not ideal that the specified prefix is ignored for some files,
but before we changed to do this users were frequently being tripped up by
things not working out of the box - the current approach causes much less
user frustration and support load.
`DESTDIR` then simply prefixes these install paths (which is what it is
meant to do).
You can achieve what you want by specifying the install location directly
and overriding `PYTHON3_LIB` to be where you want (as documented in the
`INSTALL` file):
{{{
./configure --with-python3 --prefix=/home/mailmanweb
PYTHON3_LIB=/home/mailmanweb/lib/python3.10/site-packages
}}}
If you prefer to use `DESTDIR` this will probably work:
{{{
./configure --with-python3 --prefix=/ PYTHON3_LIB=/lib/python3.10/site-
packages
}}}
--
Ticket URL: <https://trac.xapian.org/ticket/835#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list