summaryrefslogtreecommitdiff
path: root/lang/python36/buildlink3.mk
diff options
context:
space:
mode:
authoradam <adam>2017-01-01 14:34:26 +0000
committeradam <adam>2017-01-01 14:34:26 +0000
commitb6340f46db1894f9369966c6694bd745cf96e7b5 (patch)
treee7cca5151dc64247578c1fa83369ffb89f338e19 /lang/python36/buildlink3.mk
parent77711257d6cb62fa5f982a4abfca0b03e3fb3d06 (diff)
downloadpkgsrc-b6340f46db1894f9369966c6694bd745cf96e7b5.tar.gz
What’s New In Python 3.6
Summary – Release highlights New syntax features: PEP 498, formatted string literals. PEP 515, underscores in numeric literals. PEP 526, syntax for variable annotations. PEP 525, asynchronous generators. PEP 530: asynchronous comprehensions. New library modules: secrets: PEP 506 – Adding A Secrets Module To The Standard Library. CPython implementation improvements: The dict type has been reimplemented to use a more compact representation based on a proposal by Raymond Hettinger and similar to the PyPy dict implementation. This resulted in dictionaries using 20% to 25% less memory when compared to Python 3.5. Customization of class creation has been simplified with the new protocol. The class attribute definition order is now preserved. The order of elements in **kwargs now corresponds to the order in which keyword arguments were passed to the function. DTrace and SystemTap probing support has been added. The new PYTHONMALLOC environment variable can now be used to debug the interpreter memory allocation and access errors. Significant improvements in the standard library: The asyncio module has received new features, significant usability and performance improvements, and a fair amount of bug fixes. Starting with Python 3.6 the asyncio module is no longer provisional and its API is considered stable. A new file system path protocol has been implemented to support path-like objects. All standard library functions operating on paths have been updated to work with the new protocol. The datetime module has gained support for Local Time Disambiguation. The typing module received a number of improvements and is no longer provisional. The tracemalloc module has been significantly reworked and is now used to provide better output for ResourceWarning as well as provide better diagnostics for memory allocation errors. See the PYTHONMALLOC section for more information. Security improvements: The new secrets module has been added to simplify the generation of cryptographically strong pseudo-random numbers suitable for managing secrets such as account authentication, tokens, and similar. On Linux, os.urandom() now blocks until the system urandom entropy pool is initialized to increase the security. See the PEP 524 for the rationale. The hashlib and ssl modules now support OpenSSL 1.1.0. The default settings and feature set of the ssl module have been improved. The hashlib module received support for the BLAKE2, SHA-3 and SHAKE hash algorithms and the scrypt() key derivation function.
Diffstat (limited to 'lang/python36/buildlink3.mk')
-rw-r--r--lang/python36/buildlink3.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/python36/buildlink3.mk b/lang/python36/buildlink3.mk
new file mode 100644
index 00000000000..02d7ca0c9ed
--- /dev/null
+++ b/lang/python36/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/01/01 14:34:27 adam Exp $
+
+BUILDLINK_TREE+= python36
+
+.if !defined(PYTHON36_BUILDLINK3_MK)
+PYTHON36_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.python36+= python36>=3.6.0
+BUILDLINK_PKGSRCDIR.python36?= ../../lang/python36
+
+.if defined(BUILDLINK_DEPMETHOD.python)
+BUILDLINK_DEPMETHOD.python36?= ${BUILDLINK_DEPMETHOD.python}
+.endif
+
+BUILDLINK_INCDIRS.python36+= include/python3.6
+BUILDLINK_LIBDIRS.python36+= lib/python3.6/config
+BUILDLINK_TRANSFORM+= l:python:python3.6
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.endif # PYTHON36_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -python36