freebsd-ports/Mk
Charlie Li f5890bd3cb
Revert "Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install bytecode"
Despite installer's default behaviour to compile and install bytecode,
we are not doing so going forward at stage/package time. [0] During
initial development and qualification of PEP-517 framework support,
compiling and installing bytecode at stage/package time was considered,
but was found problematic, fragile and ultimately unreliable, both
currently and historically (with USE_PYTHON=distutils), due to our
fixed plist requirement. While the living binary distribution format
(wheel) specification [1] says to compile bytecode, that is in the
pure Python package management context (pip, etc); nuance always
exists when interacting with "system" package management.

Additionally, "bytecode is an implementation detail of the CPython
interpreter. No guarantees are made that bytecode will not be added,
removed, or changed between versions of Python," thus "should not
be considered to work across Python VMs or Python releases." [2]
This is important to ensuring correctness for those ports specifying
NO_ARCH.

Instead of compiling and installing bytecode at stage/package time,
there is a WIP, review D34739, that compiles and installs bytecode
at install time instead, using triggers.

The aforementioned build_fs_violations will be investigated.

This reverts commit de6965254c.

With hat:	python
Approved by:	tcberner (mentor, portmgr)
Reference:	https://wiki.freebsd.org/Python/PEP-517 [0]
		https://packaging.python.org/en/latest/specifications/binary-distribution-format/ [1]
		https://docs.python.org/3/library/dis.html [2]
2023-02-05 14:05:02 -05:00
..
Features Features/pie: allow static-pie: 2023-01-19 11:51:05 +01:00
Scripts Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP 2022-12-25 23:05:55 +01:00
Uses Revert "Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install bytecode" 2023-02-05 14:05:02 -05:00
Wrappers framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
bsd.ccache.mk Mk/bsd.ccache.mk: Add CCACHE_ENABLED variable for ports' convenience 2022-09-12 00:47:54 -07:00
bsd.commands.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.default-versions.mk Mk/bsd.default-versions.mk: Update comment: remove varnish 4 2023-02-05 23:50:13 +08:00
bsd.destdir.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.gcc.mk Mk/bsd.gcc.mk: Remove support for USE_GCC=X+ 2023-01-09 00:34:15 +00:00
bsd.gecko.mk lang/rust: Update to 1.66.0 2022-12-20 18:36:07 +01:00
bsd.java.mk Mk/bsd.java.mk: unregister expired java/openjdk7 2022-09-03 13:01:38 +02:00
bsd.ldap.mk Mk/bsd.ldap.mk: Use OpenLDAP 2.6 by default. 2022-07-08 01:06:07 -07:00
bsd.licenses.db.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.licenses.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.local.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.ocaml.mk framework: cleanup conditional-indentations in Mk/ 2022-04-24 12:00:20 +02:00
bsd.options.desc.mk devel/glib20: rename DOCS into GTKDOC and disable it by default 2022-12-09 09:07:37 +01:00
bsd.options.mk Uses/cabal.mk: Rename EXECUTABLES to CABAL_EXECUTABLES. 2022-08-09 12:16:31 +03:00
bsd.port.mk Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby 2023-01-14 17:08:33 -06:00
bsd.port.options.mk cleanup: remove 'Created by' lines 2022-07-20 21:40:02 +02:00
bsd.port.post.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
bsd.port.pre.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
bsd.port.subdir.mk component: Mk framework 2023-01-11 23:41:24 +01:00
bsd.sanity.mk Mk/Uses/apache.mk: Refactor after removal of older versions 2023-01-25 11:54:07 -06:00
bsd.sites.mk Mk/bsd.sites.mk: Update MASTER_SITE_GNUPG entries 2022-12-31 14:13:25 +01:00
bsd.wx.mk x11-toolkits/wxgtk28*: Sunset 2022-12-31 03:58:33 +01:00