./lang/python36, Interpreted, interactive, object-oriented programming language

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.6.8nb1, Package name: python36-3.6.8nb1, Maintainer: pkgsrc-users

Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The
Python Library Reference documents built-in and standard
types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics
of the core language in (perhaps too) much detail.

Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an exten-
sion language for existing applications. See the internal
documentation for hints.

This package provides Python version 3.6.x.


Required to run:
[devel/libffi]

Required to build:
[devel/readline] [pkgtools/cwrappers]

Package options: x11

Master sites:

SHA1: ee55acedef049268307633cbc9c7ff0610d1244f
RMD160: 478ffd42f188414cd6c114740f90b147363b9b10
Filesize: 16809.004 KB

Version history: (Expand)


CVS history: (Expand)


   2019-04-09 20:47:25 by Adam Ciarcinski | Files touched by this commit (6)
Log message:
python3[567]: fix #53229
   2019-04-03 15:17:28 by Maya Rashish | Files touched by this commit (5)
Log message:
python*: rework logic used to determine if PLIST.nis is used.

Match the logic used by setup.py: it looks for two headers in the default
include path. This helps newer glibc linux.

Omit PLIST.dll on python3* because it doesn't appear in the PLIST.
Make PLIST.dll true on all non-IRIX.

tested: NetBSD-current, FreeBSD 11.2, Ubuntu 18.10, CentOS 6.9, Source Mage

From Dr. Thomas Orgis, myself, and with pointers to a change from leot.

PR pkg/53673
   2019-03-02 14:23:36 by Adam Ciarcinski | Files touched by this commit (18)
Log message:
python3[4567]: find_library() fixes; remove -stack_size from LDFLAGS on Darwin.

PkgSrc changes:
* Make find_library() consitant for all Python versions:
  - Fallback to clang, when gcc is not installed.
  - Find libraries in PkgSrc prefix.
* Do not use -stack_size; it ends up in 'pythonNN-config --ldflags', and some
  modules fail to build.
   2018-12-31 11:06:45 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
python36: updated to 3.6.8

Python 3.6.8 final

Library
- bpo-31715: Associate .mjs file extension with application/javascript MIME Type.

Build
- bpo-35499: make profile-opt no longer replaces CFLAGS_NODIST with CFLAGS. It \ 
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST: existing \ 
CFLAGS_NODIST flags are kept.
- bpo-35257: Avoid leaking the linker flags from Link Time Optimizations (LTO) \ 
into distutils when compiling C extensions.

C API
- bpo-35259: Conditionally declare Py_FinalizeEx() (new in 3.6) based on \ 
Py_LIMITED_API.

Python 3.6.8 release candidate 1

Security
- bpo-34812: The -I command line option (run Python in isolated mode) is now \ 
also copied by the multiprocessing and distutils modules when spawning child \ 
processes. Previously, only -E and -s options (enabled by -I) were copied.
- bpo-34791: The xml.sax and xml.dom.domreg no longer use environment variables \ 
to override parser implementations when sys.flags.ignore_environment is set by \ 
-E or -I arguments.

Core and Builtins
- bpo-35444: Fixed error handling in pickling methods when fail to look up \ 
builtin “getattr”.
- bpo-35436: Fix various issues with memory allocation error handling. Patch by \ 
Zackery Spytz.
- bpo-35357: Internal attributes’ names of unittest.mock._Call and \ 
unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with \ 
_mock_ in order to prevent clashes with widely used object attributes. Fixed \ 
minor typo in test function name.
- bpo-35372: Fixed the code page decoder for input longer than 2 GiB containing \ 
undecodable bytes.
- bpo-33954: For str.format(), float.__format__() and complex.__format__() \ 
methods for non-ASCII decimal point when using the “n” formatter.
- bpo-35214: Fixed an out of bounds memory access when parsing a truncated \ 
unicode escape sequence at the end of a string such as '\N'. It would read one \ 
byte beyond the end of the memory allocation.
- bpo-35214: The interpreter and extension modules have had annotations added so \ 
that they work properly under clang’s Memory Sanitizer. A new configure flag \ 
–with-memory-sanitizer has been added to make test builds of this nature \ 
easier to perform.
- bpo-35193: Fix an off by one error in the bytecode peephole optimizer where it \ 
could read bytes beyond the end of bounds of an array when removing unreachable \ 
code. This bug was present in every release of Python 3.6 until now.
- bpo-29341: Clarify in the docstrings of os methods that path-like objects are \ 
also accepted as input parameters.
- bpo-35050: socket: Fix off-by-one bug in length check for AF_ALG name and type.
- bpo-34974: bytes and bytearray constructors no longer convert unexpected \ 
exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError.
- bpo-34973: Fixed crash in bytes() when the list argument is mutated while it \ 
is iterated.
- bpo-34824: Fix a possible null pointer dereference in Modules/_ssl.c. Patch by \ 
Zackery Spytz.
- bpo-1621: Do not assume signed integer overflow behavior (C undefined \ 
behavior) when performing set hash table resizing.

Library
- bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity: pass \ 
the correct arguments to the user data handler of an entity.
- bpo-35330: When a Mock instance was used to wrap an object, if side_effect is \ 
used in one of the mocks of it methods, don’t call the original implementation \ 
and return the result of using the side effect the same way that it is done with \ 
return_value.
- bpo-34172: Revert the fix for this issue previously released in 3.6.7 pending \ 
further investigation: Fix a reference issue inside multiprocessing.Pool that \ 
caused the pool to remain alive if it was deleted without being closed or \ 
terminated explicitly.
- bpo-10496: posixpath.expanduser() now returns the input path unchanged if the \ 
HOME environment variable is not set and the current user has no home directory \ 
(if the current user identifier doesn’t exist in the password database). This \ 
change fix the site module if the current user doesn’t exist in the password \ 
database (if the user has no home directory).
- bpo-35310: Fix a bug in select.select() where, in some cases, the file \ 
descriptor sequences were returned unmodified after a signal interruption, even \ 
though the file descriptors might not be ready yet. select.select() will now \ 
always return empty lists if a timeout has occurred. Patch by Oran Avraham.
- bpo-35380: Enable TCP_NODELAY on Windows for proactor asyncio event loop.
- bpo-35371: Fixed possible crash in os.utime() on Windows when pass incorrect \ 
arguments.
- bpo-27903: Fix ResourceWarning in platform.dist() on SuSE and Caldera \ 
OpenLinux. Patch by Ville Skyttä.
- bpo-28604: locale.localeconv() now sets temporarily the LC_CTYPE locale to the \ 
LC_MONETARY locale if the two locales are different and monetary strings are \ 
non-ASCII. This temporary change affects other threads.
- bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2.
- bpo-35226: Recursively check arguments when testing for equality of \ 
unittest.mock.call objects and add note that tracking of parameters used to \ 
create ancestors of mocks in mock_calls is not possible.
- bpo-35189: Modify the following fnctl function to retry if interrupted by a \ 
signal (EINTR): flock, lockf, fnctl
- bpo-35062: Fix incorrect parsing of _io.IncrementalNewlineDecoder’s \ 
translate argument.
- bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by adding \ 
‘non-overlapping’ and changing ‘!=’ to ‘<’.
- bpo-35017: socketserver.BaseServer.serve_forever() now exits immediately if \ 
it’s shutdown() method is called while it is polling for new events.
- bpo-31047: Fix ntpath.abspath regression where it didn’t remove a trailing \ 
separator on Windows. Patch by Tim Graham.
- bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj \ 
back to Tcl/Tk.
- bpo-35008: Fixed references leaks when call the __setstate__() method of \ 
xml.etree.ElementTree.Element in the C implementation for already initialized \ 
element.
- bpo-23420: Verify the value for the parameter ‘-s’ of the cProfile CLI. \ 
Patch by Robert Kuska
- bpo-16965: The 2to3 execfile fixer now opens the file with mode 'rb'. Patch by \ 
Zackery Spytz.
- bpo-34966: pydoc now supports aliases not only to methods defined in the end \ 
class, but also to inherited methods. The docstring is not duplicated for \ 
aliases.
- bpo-34941: Methods find(), findtext() and findall() of the Element class in \ 
the xml.etree.ElementTree module are now able to find children which are \ 
instances of Element subclasses.
- bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). Patch by \ 
Juliette Monsel.
- bpo-34900: Fixed unittest.TestCase.debug() when used to call test methods with \ 
subtests. Patch by Bruno Oliveira.
- bpo-34866: Adding max_num_fields to cgi.FieldStorage to make DOS attacks \ 
harder by limiting the number of MiniFieldStorage objects created by \ 
FieldStorage.
- bpo-34738: ZIP files created by distutils will now include entries for directories.
- bpo-31177: Fix bug that prevented using reset_mock on mock instances with \ 
deleted attributes
- bpo-34604: Fix possible mojibake in the error message of pwd.getpwnam and \ 
grp.getgrnam using string representation because of invisible characters or \ 
trailing whitespaces. Patch by William Grzybowski.
- bpo-34574: OrderedDict iterators are not exhausted during pickling anymore. \ 
Patch by Sergey Fedoseev.
- bpo-34052: sqlite3.Connection.create_aggregate(), \ 
sqlite3.Connection.create_function(), sqlite3.Connection.set_authorizer(), \ 
sqlite3.Connection.set_progress_handler() methods raises TypeError when \ 
unhashable objects are passed as callable. These methods now don’t pass such \ 
objects to SQLite API. Previous behavior could lead to segfaults. Patch by \ 
Sergey Fedoseev.
- bpo-29877: compileall: import ProcessPoolExecutor only when needed, preventing \ 
hangs on low resource platforms
- bpo-22005: Implemented unpickling instances of datetime, date and time pickled \ 
by Python 2. encoding='latin1' should be used for successful decoding.
   2018-10-22 19:31:21 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
python36: updated to 3.6.7

Notable changes in Python 3.6.7
xml.dom.minidom and mod:xml.sax modules no longer process external entities by \ 
default.
   2018-07-03 05:52:41 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
python36: updated to 3.6.6

Version 3.6.6:

Core and Builtins
* Fix asynchronous generators to handle GeneratorExit in athrow() correctly
* Fixed reset of the SIGINT handler to SIG_DFL on interpreter shutdown even when \ 
there was a custom handler set previously.
* Fixed a leak when the garbage collector fails to add an object with the \ 
__del__ method or referenced by it into the gc.garbage list. PyGC_Collect() can \ 
now be called when an exception is set and preserves it.
* Fix signed/unsigned comparison warning in pyhash.c.
* Fix a leak in set_symmetric_difference().
* Fix unaligned accesses in siphash24().
* Fix potential memory leak in normalizestring().
* Improved error messages in ‘async with’ when __aenter__() or __aexit__() \ 
return non-awaitable object.
* Fix ma_version_tag in dict implementation is uninitialized when copying from \ 
key-sharing dict.
* Fixed jumping when the function contains an async for loop.
* Fix an unnecessary ifdef in the include of VersionHelpers.h in socketmodule on \ 
Windows.
* Fix a crash in ctypes.cast() in case the type argument is a ctypes structured \ 
data type.

Library
* Prevent site.main() exception if PYTHONSTARTUP is set.
* Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d) \ 
returning None is now treated as naive by the astimezone() method.
* Avoid race condition with debug logging
* The concatenation (+) and repetition (*) sequence operations now raise \ 
TypeError instead of SystemError when performed on mmap.mmap objects.
* Fix gather to propagate cancellation of itself even with return_exceptions.
* Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto: \ 
start immediately the handshake instead of using call_soon(). Previously, \ 
data_received() could be called before the handshake started, causing the \ 
handshake to hang or fail.
* Fixed bug where calling write_eof() on a _SelectorSocketTransport after it’s \ 
already closed raises AttributeError.
* Fix Task.__repr__ crash with Cython’s bogus coroutines
* Fix RuntimeError after closing loop that used run_in_executor
* Use a better regex when breaking usage into wrappable parts. Avoids bogus \ 
assertion errors from custom metavar strings.
* Fixed a bug in the Python implementation of the JSON decoder that prevented \ 
the cache of parsed strings from clearing after finishing the decoding. Based on \ 
patch by c-fos.
* tempfile._candidate_tempdir_list should consider common TEMP locations
* Prevent uuid.get_node from using a DUID instead of a MAC on Windows.
* Fix race condition with ReadTransport.resume_reading in Windows proactor event \ 
loop.
* Minor fixes in typing module: add annotations to NamedTuple.__new__, pass \ 
*args and **kwds in Generic.__new__.
* Updated alias mapping with glibc 2.27 supported locales.
* Fix trailing quotation marks getting deleted when looking up byte/string \ 
literals on pydoc.
* Update error message when constructing invalid inspect.Parameters
* Fixed crash in the get() method of the dbm.ndbm database object when it is \ 
called with a single argument.
* Fix multiprocessing regression on newer glibcs
* Fix quoting of the Comment attribute of http.cookies.SimpleCookie.
* Upgrade bundled version of pip to 10.0.1.
* Fixed a crash in the parser module when converting an ST object to a tree of \ 
tuples or lists with line_info=False and col_info=True.
* Fix FD leak in _SelectorSocketTransport
* Fix display of <module> call in the html produced by cgitb.html().
* random.Random.choice() now raises IndexError for empty sequences consistently \ 
even when called from subclasses without a getrandbits() implementation.
* Update difflib.mdiff() for PEP 479. Convert an uncaught StopIteration in a \ 
generator into a return-statement.
* End framing at the end of C implementation of pickle.Pickler.dump().
* The urllib.robotparser’s __str__ representation now includes wildcard \ 
entries and the “Crawl-delay” and “Request-rate” fields.
* Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note \ 
iid=0 and iid=False would be same.
* The ssl module now compiles with LibreSSL 2.7.1.
* Release the GIL during fstat() calls, avoiding hang of all threads when \ 
calling mmap.mmap(), os.urandom(), and random.seed().
* Fix a regression in ipaddress that result of hosts() is empty when the network \ 
is constructed by a tuple containing an integer mask and only 1 bit left for \ 
addresses.
* Fix wrong redirection of a low descriptor (0 or 1) to stderr in subprocess if \ 
another low descriptor is closed.
* Fix output of cover files for trace module command-line tool. Previously \ 
emitted cover files only when --missing option was used.
* If nested log adapters are used, the inner process() methods are no longer omitted.
* Support arrays >=2GiB in ctypes.
* pydoc: the stop() method of the private ServerThread class now waits until \ 
DocServer.serve_until_quit() completes and then explicitly sets its docserver \ 
attribute to None to break a reference cycle.
   2018-06-17 21:31:50 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
python: Fix PLIST.SunOS
   2018-06-17 21:21:22 by Adam Ciarcinski | Files touched by this commit (63)
Log message:
python: pkgsrc changes

- Fix buidling curses (consistent across platforms)
- Fix finding libraries with ctypes.util.find_library
- Enable spwd module on Linux
- Cleanup