summaryrefslogtreecommitdiff
path: root/lang/python38/files (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lang/python38: remove and unregister, it reached end-of-life in October 2024Rene Ladan2025-03-3112-552/+0
| | | | This has to be done in one commit to avoid breaking INDEX
* lang/python: Revert "add bytecode trigger"Matthias Andree2023-02-271-42/+0
| | | | | | | | | This reverts commit c17ddfbf66e2801ec620d49979aca3d7077d7002. This causes breakage on several ports, and the next iteration requires a full exp-run. See: Differential Revision: https://reviews.freebsd.org/D34739
* lang/python: add bytecode triggerCharlie Li2023-02-151-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | Facilitates compiling, writing and removing bytecode files (.pyc) in site-packages after all pkg transactions have been completed. Technical details: https://wiki.freebsd.org/Python/CompiledPackages Fixes reports of Python port builds as root failing on filesystem violations due to bytecode file writes where the port did not include them in the package. For those ports/packages that currently package bytecode, some checksum mismatches on those files may occur. This is harmless and will be rectified, in large as part of a USE_PYTHON=distutils overhaul to reduce churn. While here, implement a long-standing todo item of letting lang/python ports use python.mk bits. Not only does this obviate duplicate variables in each Makefile, but SUB_LIST (also added) is used for these triggers. Co-authored by: tcberner Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D34739
* lang/python*: Support FreeBSD divert(4) socketWen Heping2022-11-141-0/+29
| | | | | | PR: 267648 Reported by: glebius@ Exp-run by: antoine@
* lang/python38: Fix build with LibreSSL 3.5.*Bernard Spil2022-07-111-0/+13
| | | | PR: 264000
* lang/python3*: add LTO option and enable by default everywhere except ↵Piotr Kubaj2022-03-091-0/+11
| | | | | | | powerpc64 and riscv64 PR: 261974 Approved by: python (koobs got his commit bit revoked during review process)
* lang/python38: Update to 3.8.10Yasuhiro Kimura2021-05-161-0/+107
| | | | | | Changes: https://docs.python.org/release/3.8.10/whatsnew/changelog.html PR: 255729 Exp-run by: antoine
* lang/python38: Use libmpdec from portsStefan Krah2021-05-162-0/+31
| | | | | | - Bump PORTREVISION for dependency and package change PR: 253603
* lang/python3{6,7,8,9}: Backport close_range patchesKyle Evans2020-10-143-51/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | Worked out over BPO-40422 and BPO-40423, this is the culmination of months of work to coordinate with Linux and get close_range(2) added to FreeBSD, then the usage accepted into CPython. It has landed for Python 3.10 and here I've backported it locally to all the supported Python 3 versions we have. Note that this does include and supercede our previous closefrom(2) patches. There was a lot of intersection between the work done, so this patch against the ports tree does remove those patches from each of the ports in favor of this patch. All the patches involved have been accepted and merged upstream. This patch will bring a performance boost in some more situations on 12.2 and 13.0, as close_range exists there. There is one additional patch sitting in an upstream PR that shuffles the _Py_closerange implementation into a different file -- this is not important for the backport, and the absence of that patch here will not realistically cause any issues. PR: 250322 Approved by: lwhsu (python) Notes: svn path=/head/; revision=552351
* lang/python{27,35,36,37,38}: Add closefrom(2) supportKubilay Kocak2019-11-292-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A single close(fd) syscall is cheap, but when MAXFDS (maximum file descriptor number) is high, the loop calling close(fd) on each file descriptor can take several milliseconds. The default value of subprocess.Popen "close_fds" parameter changed to True in Python 3. Compared to Python 2, close_fds=True can make Popen 10x slower: see bpo-37790 [1] The present workaround on FreeBSD to improve performance is to load and mount the fdescfs kernel module, but this is not enabled by default. This change adds minimum viable (and upstreamable) closefrom(2) syscall support to Python's subprocess and posix modules, improving performance significantly for loads that involve working with many processes, such as diffoscope, ansible, and many others. For additional optimizations, upstream recently (3.8) landed posix_spawn(2) support [3] and has stated that they will adopt close_range(2) after Linux merges it [4]. Linux/FreeBSD developers are already collaborating on ensuring compatible implementations, with FreeBSD's implementation pending in D21627. [5] Thank you emaste, cem, kevans for providing analysis, input, clarifications, comms/upstream support and patches. [1] https://bugs.python.org/issue37790 [2] https://bugs.python.org/issue38061 [3] https://bugs.python.org/issue35537 [4] https://lwn.net/Articles/789023/ [5] https://reviews.freebsd.org/D21627 Additional References: https://bugs.python.org/issue8052 https://bugs.python.org/issue11284 https://bugs.python.org/issue13788 https://bugs.python.org/issue1663329 https://www.python.org/dev/peps/pep-0446/ PR: 242274, 221700 Submitted by: kevans (emaste, cem) Approved by: koobs (python (maintainer), santa) Notes: svn path=/head/; revision=518640
* - Fix plist when build with DEBUG optionWen Heping2019-11-061-1/+31
| | | | Notes: svn path=/head/; revision=516854
* - Repocopy lang/python37 --> python38 and update to 3.8.0Wen Heping2019-11-025-0/+132
PR: 241416 Submitted by: wen@(myself) Reviewed by: koobs@, amdmi3@ Notes: svn path=/head/; revision=516377