HomeFreeBSD

Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install bytecode

Description

Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install bytecode

  • While I'm here, use long options for easier reading [1][2]
  • Bump PORTREVISION of dependent ports (USE_PYTHON=pep517) for package change

It fixes build_fs_violation of dependent ports in poudriere (with -t flag).
It is also the default behavior of installer [2].

from py-sphinx log:

>> Checking for staging violations... done

>> Error: Filesystem touched during stage (files must install to ${STAGEDIR}):

extra: usr/local/lib/python3.9/site-packages/importlib_metadata/__pycache__

>> Cleaning up wrkdir

from installer documentation:
--compile-bytecode

Possible choices: 0, 1, 2
generate bytecode for the specified optimization level(s) (default=0, 1)

--no-compile-bytecode

don’t generate bytecode for installed modules
Default: False

With hat: python
Reference: https://pypa-build.readthedocs.io/en/stable/ [1]

		https://installer.pypa.io/en/stable/cli/installer/ [2]