[Xapian-tickets] [Xapian] #807: ​PyPI package of python bindings

Xapian nobody at xapian.org
Sat Jun 25 23:14:49 BST 2022


#807: ​PyPI package of python bindings
--------------------------------------+------------------------------------
 Reporter:  Abhilash Raj              |             Owner:  Richard Boulton
     Type:  enhancement               |            Status:  new
 Priority:  normal                    |         Milestone:
Component:  Xapian-bindings (Python)  |           Version:
 Severity:  normal                    |        Resolution:
 Keywords:                            |        Blocked By:
 Blocking:                            |  Operating System:  All
--------------------------------------+------------------------------------
Comment (by Olly Betts):

 I can't speak for others but personally I don't really have the time to
 spare to take on maintaining a PyPI package, and I'm not an active Python
 user so not a good choice anyway.

 We install both Python and PHP bindings based on what the language reports
 - for Python:

 {{{
 python3 -c 'import
 os,distutils.sysconfig;print(distutils.sysconfig.get_python_lib(1).replace(os.sep,"/"))'
 }}}

 (The separator replacement is just so it works on Microsoft Windows if a
 native Python which reports `\` separated paths.)

 If that doesn't report a helpful location on some platform then please
 help to improve that.  A PyPI package is useful for people who want it,
 but isn't a really the appropriate fix for not working well out of the box
 on a particular platform.

 Seems it is in need of an update anyway as distutils is now deprecated and
 with Python 3.10 the above emits:

 {{{
 <string>:1: DeprecationWarning: The distutils package is deprecated and
 slated for removal in Python 3.12. Use setuptools or check PEP 632 for
 potential alternatives
 <string>:1: DeprecationWarning: The distutils.sysconfig module is
 deprecated, use sysconfig instead
 /usr/lib/python3/dist-packages
 }}}

 For PHP:

 {{{
 php-config --extension-dir
 }}}

 That's documented as giving the "Directory where extensions are searched
 by default", so it seems strange if it really reports a "very peculiar
 place" on a mac, but again please help to improve that if necessary.
-- 
Ticket URL: <https://trac.xapian.org/ticket/807#comment:5>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list