diff --git lang/python/2.7/pkg/DESCR-main lang/python/2.7/pkg/DESCR-main
index adfd63f9840..9d7c54a9e93 100644
--- lang/python/2.7/pkg/DESCR-main
+++ lang/python/2.7/pkg/DESCR-main
@@ -12,3 +12,5 @@ written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an
extension language for existing applications. See the
internal documentation for hints.
+
+Flavor wx - build with W|X reliance.
diff --git lang/python/3.6/pkg/DESCR-main lang/python/3.6/pkg/DESCR-main
index adfd63f9840..9d7c54a9e93 100644
--- lang/python/3.6/pkg/DESCR-main
+++ lang/python/3.6/pkg/DESCR-main
@@ -12,3 +12,5 @@ written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an
extension language for existing applications. See the
internal documentation for hints.
+
+Flavor wx - build with W|X reliance.
diff --git lang/python/Makefile.inc lang/python/Makefile.inc
index f66fda7e47f..7f317e4b6e2 100644
--- lang/python/Makefile.inc
+++ lang/python/Makefile.inc
@@ -43,6 +43,9 @@ MAINTAINER = Remi Pointel <[email protected]>
# A summary of changes to Python is required to be distributed
PERMIT_PACKAGE_CDROM = Yes
+FLAVORS= wx
+FLAVOR?= wx
+
.if ${VERSION} == "2.7"
LIB_SUFX =
MULTI_PACKAGES = -main -tests -tools -gdbm -idle -tkinter -bsddb
@@ -124,7 +127,9 @@ FAKE_FLAGS += RANLIB=:
# Python itself is clean, but some extensions e.g. py-cryptography
# and QtWebKit require W|X mappings.
+.if ${FLAVOR} == "wx"
USE_WXNEEDED = Yes
+.endif
.if ${VERSION} == "3.6"
ALL_TARGET = all