Major new features of the 3.8 series, compared to 3.7 PEP 572, Assignment expressions PEP 570, Positional-only arguments PEP 587, Python Initialization Configuration (improved embedding) PEP 590, Vectorcall: a fast calling protocol for CPython PEP 578, Runtime audit hooks PEP 574, Pickle protocol 5 with out-of-band data Typing-related: PEP 591 (Final qualifier), PEP 586 (Literal types), and PEP 589 (TypedDict) Parallel filesystem cache for compiled bytecode Debug builds share ABI as release builds f-strings support a handy = specifier for debugging continue is now legal in finally: blocks on Windows, the default asyncio event loop is now ProactorEventLoop on macOS, the spawn start method is now used by default in multiprocessing multiprocessing can now use shared memory segments to avoid pickling costs between processes typed_ast is merged back to CPython LOAD_GLOBAL is now 40% faster pickle now uses Protocol 4 by default, improving performance
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2019/10/15 16:50:11 adam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.python38
|
|
PKG_SUPPORTED_OPTIONS= dtrace pymalloc x11
|
|
PKG_SUGGESTED_OPTIONS= x11
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= dtrace
|
|
|
|
.if !empty(PKG_OPTIONS:Mdtrace)
|
|
CONFIGURE_ARGS+= --with-dtrace
|
|
PLIST.dtrace= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
# Support for native X11 paths as an option
|
|
# This code is no-op for modular X11, however for simplicity don't make it conditional.
|
|
SUBST_CLASSES+= xfindlib
|
|
SUBST_MESSAGE.xfindlib= Fixing find_library() for native X11.
|
|
SUBST_STAGE.xfindlib= pre-configure
|
|
SUBST_FILES.xfindlib= Lib/ctypes/util.py
|
|
SUBST_SED.xfindlib= -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${X11BASE}/lib', '-L${X11BASE}/lib', \1!"
|
|
|
|
# Required to get definition of X11BASE and retain X11 rpath paths for linker
|
|
# We need to pass rpath to _ctypes.so to get functional dlopen(3) for X11 libs
|
|
USE_X11= yes
|
|
|
|
SUBST_CLASSES+= cdlopen
|
|
SUBST_MESSAGE.cdlopen= Handle X11BASE paths in dlopen(3) calls of _ctypes.so
|
|
SUBST_STAGE.cdlopen= pre-configure
|
|
SUBST_FILES.cdlopen= setup.py
|
|
SUBST_SED.cdlopen= -e "s!\(libraries=\[\],\)!\1 runtime_library_dirs=\['${X11BASE}/lib'\],!"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpymalloc)
|
|
CONFIGURE_ARGS+= --with-pymalloc
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pymalloc
|
|
.endif
|