maintainer-feedback requested: [Bug 243358] [PATCH] lang/python*: DISABLED_EXTENSIONS doesn't work as advertised

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 15 00:08:51 UTC 2020


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-python mailing
list <python at FreeBSD.org> for maintainer-feedback:
Bug 243358: [PATCH] lang/python*: DISABLED_EXTENSIONS doesn't work as
advertised
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243358



--- Description ---
I tried building lang/python38 on a system with sqlite3 available, and
unfortunately it failed `check-plist` because the extension had been installed.

Doing some grepping around, DISABLE_EXTENSIONS isn't actively referred to in
setup.py nor in Makefile.pre*:

ports/lang/python38/work/Python-3.8.1/setup.py:DISABLED_MODULE_LIST = []
ports/lang/python38/work/Python-3.8.1/setup.py: 		     if
ext.name not in DISABLED_MODULE_LIST]
ports/lang/python38/work/Python-3.8.1/setup.py:        sysconf_dis =
sysconfig.get_config_var('MODDISABLED_NAMES').split()

It turns out that the correct way to do this is via `Modules/Setup`, but this
method seems to be broken.

An upstream bug is pending for the issue.


More information about the freebsd-python mailing list