[Bug 264657] security/libpwquality: broken python bindings

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Oct 2022 20:25:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264657

--- Comment #20 from alt2600@icloud.com ---
so bumping py-setuptools to 65.5.0 doesn't fix anything

so no idea how to make this happy short of turning off the bindings. I'm
digging through Mk/Uses/python.mk but nothing is sticking out to me, as I have
never had any luck doing anything with python because it usually ends with
errors like these. I'm looking at maybe pip install, but no idea how to hack
that in. 



/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip
and other standards-based tools.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/setuptools/command/easy_install.py:144:
EasyInstallDeprecationWarning: easy_install command is deprecated. Use build
and pip and other standards-based tools.
  warnings.warn(
Checking .pth file support in
/usr/ports/security/libpwquality/work/stage/usr/local/lib/python3.9/site-packages/
/usr/local/bin/python3.9 -E -c pass
TEST FAILED:
/usr/ports/security/libpwquality/work/stage/usr/local/lib/python3.9/site-packages/
does NOT support .pth files
bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

   
/usr/ports/security/libpwquality/work/stage/usr/local/lib/python3.9/site-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

 
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html#custom-installation-locations

-- 
You are receiving this mail because:
You are the assignee for the bug.