python37: updated to 3.7.7
Python 3.7.7 final
Library
bpo-13487: Avoid a possible “RuntimeError: dictionary changed size during iteration” from inspect.getmodule() when it tried to loop through sys.modules.
Documentation
bpo-17422: The language reference no longer restricts default class namespaces to dicts only.
Python 3.7.7 release candidate 1
Security
bpo-39401: Avoid unsafe load of api-ms-win-core-path-l1-1-0.dll at startup on Windows 7.
Core and Builtins
bpo-39776: Fix race condition where threads created by PyGILState_Ensure() could get a duplicate id.
This affects consumers of tstate->id like the contextvar caching machinery, which could return invalid cached objects under heavy thread load (observed in embedded scenarios).
bpo-39778: Fixed a crash due to incorrect handling of weak references in collections.OrderedDict classes. Patch by Pablo Galindo.
bpo-39382: Fix a use-after-free in the single inheritance path of issubclass(), when the __bases__ of an object has a single reference, and so does its first item. Patch by Yonatan Goldschmidt.
bpo-39606: Fix regression caused by fix for bpo-39386, that prevented calling aclose on an async generator that had already been closed or exhausted.
bpo-39510: Fix segfault in readinto() method on closed BufferedReader.
bpo-39453: Fixed a possible crash in list.__contains__() when a list is changed during comparing items. Patch by Dong-hee Na.
bpo-39427: Document all possibilities for the -X options in the command line help section. Patch by Pablo Galindo.
bpo-39421: Fix possible crashes when operating with the functions in the heapq module and custom comparison operators.
bpo-39386: Prevent double awaiting of async iterator.
bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool().
bpo-39031: When parsing an “elif” node, lineno and col_offset of the node now point to the “elif” keyword and not to its condition, making it consistent with the “if” node. Patch by Lysandros Nikolaou.
bpo-38610: Fix possible crashes in several list methods by holding strong references to list elements when calling PyObject_RichCompareBool().
Library
bpo-39794: Add –without-decimal-contextvar build option. This enables a thread-local rather than a coroutine local context.
bpo-39769: The compileall.compile_dir() function’s ddir parameter and the compileall command line flag -d no longer write the wrong pathname to the generated pyc file for submodules beneath the root of the directory tree being compiled. This fixes a regression introduced with Python 3.5.
bpo-30566: Fix IndexError when trying to decode an invalid string with punycode codec.
bpo-39649: Remove obsolete check for __args__ in bdb.Bdb.format_stack_entry.
bpo-27657: The original fix for bpo-27657, “Fix urlparse() with numeric paths” (GH-16839) included in 3.7.6, inadvertently introduced a behavior change that broke several third-party packages relying on the original undefined parsing behavior. The change is reverted in 3.7.7, restoring the behavior of 3.7.5 and earlier releases.
bpo-21016: The pydoc and trace modules now use the sysconfig module to get the path to the Python standard library, to support uncommon installation path like /usr/lib64/python3.9/ on Fedora. Patch by Jan Matějek.
bpo-39548: Fix handling of header in urllib.request.AbstractDigestAuthHandler when the optional qop parameter is not present.
bpo-39450: Striped whitespace from docstring before returning it from unittest.case.shortDescription().
bpo-39493: Mark typing.IO.closed as a property
bpo-39485: Fix a bug in unittest.mock.create_autospec() that would complain about the wrong number of arguments for custom descriptors defined in an extension module returning functions.
bpo-39430: Fixed race condition in lazy imports in tarfile.
bpo-39389: Write accurate compression level metadata in gzip archives, rather than always signaling maximum compression.
bpo-39274: bool(fraction.Fraction) now returns a boolean even if (numerator != 0) does not return a boolean (ex: numpy number).
bpo-39242: Updated the Gmane domain from news.gmane.org to news.gmane.io which is used for examples of NNTP news reader server and nntplib tests.
bpo-39152: Fix ttk.Scale.configure([name]) to return configuration tuple for name or all options. Giovanni Lombardo contributed part of the patch.
bpo-39198: If an exception were to be thrown in Logger.isEnabledFor (say, by asyncio timeouts or stopit) , the logging global lock may not be released appropriately, resulting in deadlock. This change wraps that block of code with try...finally to ensure the lock is released.
bpo-39191: Perform a check for running loop before starting a new task in loop.run_until_complete() to fail fast; it prevents the side effect of new task spawning before exception raising.
bpo-38871: Correctly parenthesize filter-based statements that contain lambda expressions in mod:lib2to3. Patch by Dong-hee Na.
bpo-39142: A change was made to logging.config.dictConfig to avoid converting instances of named tuples to ConvertingTuple. It’s assumed that named tuples are too specialised to be treated like ordinary tuples; if a user of named tuples requires ConvertingTuple functionality, they will have to implement that themselves in their named tuple class.
bpo-38971: Open issue in the BPO indicated a desire to make the implementation of codecs.open() at parity with io.open(), which implements a try/except to assure file stream gets closed before an exception is raised.
bpo-39057: urllib.request.proxy_bypass_environment() now ignores leading dots and no longer ignores a trailing newline.
bpo-39056: Fixed handling invalid warning category in the -W option. No longer import the re module if it is not needed.
bpo-39055: base64.b64decode() with validate=True raises now a binascii.Error if the input ends with a single \n.
bpo-38878: Fixed __subclasshook__ of os.PathLike to return a correct result upon inheritence. Patch by Bar Harel.
bpo-35182: Fixed Popen.communicate() subsequent call crash when the child process has already closed any piped standard stream, but still continues to be running. Patch by Andriy Maletsky.
bpo-38473: Use signature from inner mock for autospecced methods attached with unittest.mock.attach_mock(). Patch by Karthikeyan Singaravelan.
bpo-38293: Add copy.copy() and copy.deepcopy() support to property() objects.
bpo-37953: In typing, improved the __hash__ and __eq__ methods for ForwardReferences.
bpo-36406: Handle namespace packages in doctest. Patch by Karthikeyan Singaravelan.
Documentation
bpo-13790: Change ‘string’ to ‘specification’ in format doc.
bpo-39530: Fix misleading documentation about mixed-type numeric comparisons.
bpo-17422: The language reference now specifies restrictions on class namespaces. Adapted from a patch by Ethan Furman.
bpo-39654: In pyclbr doc, update ‘class’ to ‘module’ where appropriate and add readmodule comment. Patch by Hakan Çelik.
bpo-39392: Explain that when filling with turtle, overlap regions may be left unfilled.
bpo-39381: Mention in docs that asyncio.get_event_loop() implicitly creates new event loop only if called from the main thread.
bpo-38918: Add an entry for __module__ in the “function” & “method” sections of the inspect docs types and members table
bpo-3530: In the ast module documentation, fix a misleading NodeTransformer example and add advice on when to use the fix_missing_locations function.
Tests
bpo-38546: Fix test_ressources_gced_in_workers() of test_concurrent_futures: explicitly stop the manager to prevent leaking a child process running in the background after the test completes.
Build
bpo-39144: The ctags and etags build targets both include Modules/_ctypes and Python standard library source files.
Windows
bpo-38597: distutils will no longer statically link vcruntime140.dll when a redistributable version is unavailable. All future releases of CPython will include a copy of this DLL to ensure distributed extensions can continue to load.
bpo-38380: Update Windows builds to use SQLite 3.31.1
bpo-39439: Reduce overhead when using multiprocessing in a Windows virtual environment
bpo-39185: The build.bat script has additional options for very-quiet output (-q) and very-verbose output (-vv)
macOS
bpo-38380: Update macOS builds to use SQLite 3.31.1
IDLE
bpo-39781: Selecting code context lines no longer causes a jump.
bpo-39663: Add tests for pyparse find_good_parse_start().
bpo-39600: In the font configuration window, remove duplicated font names.
bpo-30780: Add remaining configdialog tests for buttons and highlights and keys tabs.
bpo-39388: IDLE Settings Cancel button now cancels pending changes
bpo-39050: Make IDLE Settings dialog Help button work again.
bpo-34118: Tag memoryview, range, and tuple as classes, the same as list, etcetera, in the library manual built-in functions list.
bpo-38792: Close an IDLE shell calltip if a KeyboardInterrupt or shell restart occurs. Patch by Zackery Spytz.
bpo-32989: Add tests for editor newline_and_indent_event method. Remove dead code from pyparse find_good_parse_start method.
2020-03-11 09:31:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2020/03/11 08:31:57 adam Exp $
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
|
|
|
|
.include "dist.mk"
|
|
|
|
|
|
|
|
PKGNAME= python37-${PY_DISTVERSION}
|
|
|
|
CATEGORIES= lang python
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= https://www.python.org/
|
|
|
|
COMMENT= Interpreted, interactive, object-oriented programming language
|
|
|
|
LICENSE= python-software-foundation
|
|
|
|
|
|
|
|
CONFLICTS+= python-[0-9]*
|
|
|
|
|
2019-03-02 14:23:35 +01:00
|
|
|
PLIST_AWK= -f ${PKGSRCDIR}/lang/python/plist-python.awk
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
PLIST_AWK_ENV+= PYVERS=37
|
|
|
|
PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.pyc$$/ {
|
|
|
|
PRINT_PLIST_AWK+= sub(/__pycache__\//, "")
|
|
|
|
PRINT_PLIST_AWK+= sub(/\.cpython-37/, "")}
|
|
|
|
PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.opt-1.pyc$$/ {
|
|
|
|
PRINT_PLIST_AWK+= sub(/.opt-[12].pyc$$/, ".pyo")}
|
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
|
|
|
|
CONFIGURE_ARGS+= --with-system-ffi
|
|
|
|
CONFIGURE_ARGS+= --without-ensurepip
|
|
|
|
CONFIGURE_ENV+= OPT=${CFLAGS:M*:Q}
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
|
|
|
|
PKGCONFIG_OVERRIDE+= Misc/python.pc.in
|
|
|
|
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# http://bugs.python.org/issue13241
|
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-10.*)
|
2019-10-16 09:04:04 +02:00
|
|
|
PKGSRC_COMPILER?= clang
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
PKG_CC= clang
|
|
|
|
PKG_CXX= clang++
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# fdatasync()
|
|
|
|
LIBS.SunOS+= -lrt
|
|
|
|
|
|
|
|
PY_VER_SUFFIX= 3.7
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
PY_PLATNAME= ${LOWER_OPSYS}
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
|
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
|
|
|
|
.elif ${OPSYS} == "HPUX"
|
|
|
|
PY_PLATNAME= hp-ux11
|
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
PY_PLATNAME= linux
|
|
|
|
.else
|
|
|
|
PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
|
|
|
|
.endif
|
|
|
|
PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
|
|
|
|
|
|
|
|
# ossaudiodev is only available on x86 for the following platforms
|
|
|
|
PLIST_VARS+= oss
|
|
|
|
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
|
|
|
|
(${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD")
|
|
|
|
PLIST.oss= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# For Xcode 5 and up, we need to search the SDK path for headers, otherwise
|
|
|
|
# certain modules will not be built.
|
|
|
|
.if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include)
|
|
|
|
CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
|
|
|
|
.endif
|
|
|
|
|
2019-04-25 17:59:54 +02:00
|
|
|
PLIST_VARS+= nis
|
2019-04-03 15:17:27 +02:00
|
|
|
.for incdir in ${_OPSYS_INCLUDE_DIRS}
|
|
|
|
. if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h))
|
|
|
|
HAVE_RPC_H= yes
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
. endif
|
2019-04-03 15:17:27 +02:00
|
|
|
. if (exists(${incdir}/rpcsvc/yp_prot.h) || exists(${incdir}/nsl/rpcsvc/yp_prot.h))
|
|
|
|
HAVE_YP_PROT_H= yes
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.if (${HAVE_RPC_H:Uno} == yes && ${HAVE_YP_PROT_H:Uno} == yes)
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
PLIST.nis= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
|
|
|
|
|
|
|
|
PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
|
|
|
|
PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \
|
|
|
|
"python$${PY_VER_SUFFIX}") }
|
|
|
|
|
|
|
|
TEST_TARGET= test
|
|
|
|
INSTALL_TARGET= altinstall
|
|
|
|
|
python37: updated to 3.7.3
Python 3.7.3:
Security
bpo-36216: Changes urlsplit() to raise ValueError when the URL contains characters that decompose under IDNA encoding (NFKC-normalization) into characters that affect how the URL is parsed.
bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of Cisco.
bpo-35121: Don’t send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with http.cookiejar.DefaultCookiePolicy policy. Patch by Karthikeyan Singaravelan.
Core and Builtins
bpo-35942: The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
bpo-35992: Fix __class_getitem__() not being called on a class with a custom non-subscriptable metaclass.
bpo-35991: Fix a potential double free in Modules/_randommodule.c.
bpo-35961: Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples.
bpo-31506: Clarify the errors reported when object.__new__ and object.__init__ receive more than one argument. Contributed by Sanyam Khurana.
bpo-35720: Fixed a minor memory leak in pymain_parse_cmdline_impl function in Modules/main.c
bpo-35623: Fix a crash when sorting very long lists. Patch by Stephan Hohe.
bpo-35214: clang Memory Sanitizer build instrumentation was added to work around false positives from posix, socket, time, test_io, and test_faulthandler.
bpo-35560: Fix an assertion error in format() in debug build for floating point formatting with “n” format, zero padding and small width. Release build is not impacted. Patch by Karthikeyan Singaravelan.
bpo-35552: Format characters %s and %V in PyUnicode_FromFormat() and %s in PyBytes_FromFormat() no longer read memory past the limit if precision is specified.
bpo-35504: Fix segfaults and SystemErrors when deleting certain attributes. Patch by Zackery Spytz.
bpo-33989: Fix a possible crash in list.sort() when sorting objects with ob_type->tp_richcompare == NULL. Patch by Zackery Spytz.
Library
bpo-35931: The pdb debug command now gracefully handles all exceptions.
bpo-36251: Fix format strings used for stderrprinter and re.Match reprs. Patch by Stephan Hohe.
bpo-35807: Update ensurepip to install pip 19.0.3 and setuptools 40.8.0.
bpo-36179: Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in out-of-memory cases.
bpo-35178: Ensure custom warnings.formatwarning() function can receive line as positional argument. Based on patch by Tashrif Billah.
bpo-36106: Resolve potential name clash with libm’s sinpi(). Patch by Dmitrii Pasechnik.
bpo-35512: unittest.mock.patch.dict() used as a decorator with string target resolves the target during function call instead of during decorator construction. Patch by Karthikeyan Singaravelan.
bpo-36091: Clean up reference to async generator in Lib/types. Patch by Henry Chen.
bpo-35899: Enum has been fixed to correctly handle empty strings and strings with non-Latin characters (ie. ‘α’, ‘א’) without crashing. Original patch contributed by Maxwell. Assisted by Stéphane Wirtel.
bpo-35918: Removed broken has_key method from multiprocessing.managers.SyncManager.dict. Contributed by Rémi Lapeyre.
bpo-35960: Fix dataclasses.field() throwing away empty mapping objects passed as metadata.
bpo-35847: RISC-V needed the CTYPES_PASS_BY_REF_HACK. Fixes ctypes Structure test_pass_by_value.
bpo-35780: Fix lru_cache() errors arising in recursive, reentrant, or multi-threaded code. These errors could result in orphan links and in the cache being trapped in a state with fewer than the specified maximum number of links. Fix handling of negative maxsize which should have been treated as zero. Fix errors in toggling the “full” status flag. Fix misordering of links when errors are encountered. Sync-up the C code and pure Python code for the space saving path in functions with a single positional argument. In this common case, the space overhead of an lru cache entry is reduced by almost half. Fix counting of cache misses. In error cases, the miss count was out of sync with the actual number of times the underlying user function was called.
bpo-23846: asyncio.ProactorEventLoop now catches and logs send errors when the self-pipe is full.
bpo-34323: asyncio: Enhance IocpProactor.close() log: wait 1 second before the first log, then log every second. Log also the number of seconds since close() was called.
bpo-34294: re module, fix wrong capturing groups in rare cases. re.search(), re.findall(), re.sub() and other functions that scan through string looking for a match, should reset capturing groups between two match attempts. Patch by Ma Lin.
bpo-35717: Fix KeyError exception raised when using enums and compile. Patch contributed by Rémi Lapeyre.
bpo-35699: Fixed detection of Visual Studio Build Tools 2017 in distutils
bpo-32710: Fix memory leaks in asyncio ProactorEventLoop on overlapped operation failure.
bpo-32710: Fix a memory leak in asyncio in the ProactorEventLoop when ReadFile() or WSASend() overlapped operation fail immediately: release the internal buffer.
bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don’t attempt to set the result of an internal future if it’s already done.
bpo-35283: Add a pending deprecated warning for the threading.Thread.isAlive() method. Patch by Dong-hee Na.
bpo-35643: Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py. Patch by Mickaël Schoentgen.
bpo-35615: weakref: Fix a RuntimeError when copying a WeakKeyDictionary or a WeakValueDictionary, due to some keys or values disappearing while iterating.
bpo-28503: The crypt module now internally uses the crypt_r() library function instead of crypt() when available.
bpo-35121: Don’t set cookie for a request when the request path is a prefix match of the cookie’s path attribute but doesn’t end with “/”. Patch by Karthikeyan Singaravelan.
bpo-35585: Speed-up building enums by value, e.g. http.HTTPStatus(200).
bpo-21478: Calls to a child function created with unittest.mock.create_autospec() should propagate to the parent. Patch by Karthikeyan Singaravelan.
bpo-35513: TextTestRunner of unittest.runner now uses time.perf_counter() rather than time.time() to measure the execution time of a test: time.time() can go backwards, whereas time.perf_counter() is monotonic.
bpo-35502: Fixed reference leaks in xml.etree.ElementTree.TreeBuilder in case of unfinished building of the tree (in particular when an error was raised during parsing XML).
bpo-31446: Copy command line that was passed to CreateProcessW since this function can change the content of the input buffer.
bpo-20239: Allow repeated assignment deletion of unittest.mock.Mock attributes. Patch by Pablo Galindo.
bpo-17185: Set __signature__ on mock for inspect to get signature. Patch by Karthikeyan Singaravelan.
bpo-10496: check_environ() of distutils.utils now catches KeyError on calling pwd.getpwuid(): don’t create the HOME environment variable in this case.
bpo-35066: Previously, calling the strftime() method on a datetime object with a trailing ‘%’ in the format string would result in an exception. However, this only occured when the datetime C module was being used; the python implementation did not match this behavior. Datetime is now PEP-399 compliant, and will not throw an exception on a trailing ‘%’.
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff. Orignial patch by R. David Murray & Jairo Trad. Enhanced by Sanyam Khurana.
bpo-35198: Fix C++ extension compilation on AIX
bpo-28441: On Cygwin and MinGW, ensure that sys.executable always includes the full filename in the path, including the .exe suffix (unless it is a symbolic link).
bpo-34572: Fix C implementation of pickle.loads to use importlib’s locking mechanisms, and thereby avoid using partially-loaded modules. Patch by Tim Burgess.
bpo-33687: Fix the call to os.chmod() for uu.decode() if a mode is given or decoded. Patch by Timo Furrer.
bpo-32146: Document the interaction between frozen executables and the spawn and forkserver start methods in multiprocessing.
2019-03-26 21:54:55 +01:00
|
|
|
REPLACE_INTERPRETER+= python
|
|
|
|
REPLACE.python.old= .*python[^ ]*
|
|
|
|
REPLACE.python.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}
|
|
|
|
REPLACE_FILES.python+= Lib/base64.py
|
|
|
|
REPLACE_FILES.python+= Lib/cProfile.py
|
|
|
|
REPLACE_FILES.python+= Lib/cgi.py
|
|
|
|
REPLACE_FILES.python+= Lib/encodings/rot_13.py
|
|
|
|
REPLACE_FILES.python+= Lib/idlelib/pyshell.py
|
|
|
|
REPLACE_FILES.python+= Lib/keyword.py
|
|
|
|
REPLACE_FILES.python+= Lib/lib2to3/pgen2/token.py
|
|
|
|
REPLACE_FILES.python+= Lib/lib2to3/tests/data/different_encoding.py
|
|
|
|
REPLACE_FILES.python+= Lib/lib2to3/tests/data/false_encoding.py
|
|
|
|
REPLACE_FILES.python+= Lib/lib2to3/tests/pytree_idempotency.py
|
|
|
|
REPLACE_FILES.python+= Lib/pdb.py
|
|
|
|
REPLACE_FILES.python+= Lib/platform.py
|
|
|
|
REPLACE_FILES.python+= Lib/profile.py
|
|
|
|
REPLACE_FILES.python+= Lib/pydoc.py
|
|
|
|
REPLACE_FILES.python+= Lib/quopri.py
|
|
|
|
REPLACE_FILES.python+= Lib/smtpd.py
|
|
|
|
REPLACE_FILES.python+= Lib/smtplib.py
|
|
|
|
REPLACE_FILES.python+= Lib/symbol.py
|
|
|
|
REPLACE_FILES.python+= Lib/tabnanny.py
|
|
|
|
REPLACE_FILES.python+= Lib/tarfile.py
|
|
|
|
REPLACE_FILES.python+= Lib/test/bisect_cmd.py
|
|
|
|
REPLACE_FILES.python+= Lib/test/crashers/recursive_call.py
|
|
|
|
REPLACE_FILES.python+= Lib/test/curses_tests.py
|
|
|
|
REPLACE_FILES.python+= Lib/test/re_tests.py
|
|
|
|
REPLACE_FILES.python+= Lib/test/regrtest.py
|
|
|
|
REPLACE_FILES.python+= Lib/timeit.py
|
|
|
|
REPLACE_FILES.python+= Lib/trace.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/__main__.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/bytedesign.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/clock.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/forest.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/fractalcurves.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/lindenmayer.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/minimal_hanoi.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/paint.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/peace.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/penrose.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/planet_and_moon.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/sorting_animate.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/tree.py
|
|
|
|
REPLACE_FILES.python+= Lib/turtledemo/yinyang.py
|
|
|
|
REPLACE_FILES.python+= Lib/uu.py
|
|
|
|
REPLACE_FILES.python+= Lib/webbrowser.py
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
|
2019-03-02 14:23:35 +01:00
|
|
|
# XXX: It might be needed to add manually more paths like ${PREFIX}/qt5/lib
|
|
|
|
# Test: python -c 'from ctypes.util import find_library; print(find_library("ffi"));'
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
SUBST_CLASSES+= findlib
|
2019-03-02 14:23:35 +01:00
|
|
|
SUBST_MESSAGE.findlib= Fixing find_library().
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
SUBST_STAGE.findlib= pre-configure
|
2019-03-02 14:23:35 +01:00
|
|
|
SUBST_FILES.findlib= Lib/ctypes/macholib/dyld.py
|
|
|
|
SUBST_FILES.findlib+= Lib/ctypes/util.py
|
|
|
|
SUBST_FILES.findlib+= Lib/distutils/unixccompiler.py
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},'
|
2019-03-02 14:23:35 +01:00
|
|
|
SUBST_SED.findlib+= -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${PREFIX}/lib', '-L${PREFIX}/lib', \1!"
|
python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.
Among the major new features in Python 3.7 are:
PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 05:55:40 +02:00
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
CHECK_INTERPRETER_SKIP= lib/python${PY_VER_SUFFIX}/venv/scripts/posix/pydoc
|
|
|
|
|
|
|
|
# Avoid error: Cannot generate ./Include/opcode.h, python not found !
|
|
|
|
post-configure:
|
|
|
|
touch ${WRKSRC}/Include/opcode.h
|
|
|
|
|
|
|
|
.if ${OPSYS} == "HPUX"
|
|
|
|
post-install:
|
|
|
|
${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython3.7.sl \
|
|
|
|
${DESTDIR}${PREFIX}/lib/libpython3.7.sl.1.0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILDLINK_DEPMETHOD.readline= build
|
|
|
|
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
|
|
.include "../../archivers/xz/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
|
|
|
.include "../../devel/libuuid/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|