Bug 267515 - lang/python312: New port, repocopied from lang/python311
Summary: lang/python312: New port, repocopied from lang/python311
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on: 268283
Blocks:
  Show dependency treegraph
 
Reported: 2022-11-02 08:18 UTC by Wen Heping
Modified: 2023-12-09 08:01 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments
python-3.12.0a1 (528.58 KB, application/x-shellscript)
2022-11-02 08:18 UTC, Wen Heping
no flags Details
Update to 3.12.0a3 (497.66 KB, application/x-shellscript)
2022-11-22 02:04 UTC, Wen Heping
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wen Heping freebsd_committer freebsd_triage 2022-11-02 08:18:42 UTC
Created attachment 237808 [details]
python-3.12.0a1

New port, repocopied from lang/python311
Comment 1 Wen Heping freebsd_committer freebsd_triage 2022-11-02 08:20:14 UTC
The result of "make test" on my amd64-head system:

409 tests OK.

10 slowest tests:
- test_smtpnet: 5 min 50 sec
- test_concurrent_futures: 3 min 5 sec
- test_tools: 2 min 51 sec
- test_urllib2net: 2 min 44 sec
- test_multiprocessing_forkserver: 2 min 35 sec
- test_socket: 2 min 33 sec
- test_hashlib: 2 min 29 sec
- test_urllibnet: 2 min 29 sec
- test_asyncio: 2 min 27 sec
- test_multiprocessing_spawn: 2 min 23 sec

4 tests failed:
    test_distutils test_dtrace test_tempfile test_tools

23 tests skipped:
    test_dbm_gnu test_devpoll test_epoll test_gdb test_idle test_ioctl
    test_launcher test_msilib test_perf_profiler test_spwd
    test_sqlite3 test_startfile test_tcl test_tix test_tkinter
    test_ttk test_ttk_textonly test_turtle test_winconsoleio
    test_winreg test_winsound test_wmi test_zipfile64

5 re-run tests:
    test_distutils test_dtrace test_shutil test_tempfile test_tools

1 test run no tests:
    test_shutil
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2022-11-09 17:41:46 UTC
Is there a reason why we install lib/python%%XYDOT%%/test which is from what I can tell by upstream only meant for internal use and doesn't seem to be common practice when distributing the runtime?
https://docs.python.org/3/library/test.html
Comment 3 Wen Heping freebsd_committer freebsd_triage 2022-11-22 02:04:07 UTC
Created attachment 238242 [details]
Update to 3.12.0a3

Update to 3.12.0a3
Comment 4 Wen Heping freebsd_committer freebsd_triage 2022-11-22 02:04:38 UTC
(In reply to Wen Heping from comment #3)
Sorry, it is 3.12.0a2
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2022-12-15 16:46:17 UTC
For the record, I did a port for 3.12.0a2 as well. It looks the same apart from plist changes.

I'd suggest to also add

CONFIGURE_ENV+=                ac_cv_buggy_getaddrinfo=no

(this would be useful for older python versions as well) which fixes configure failure in networkless environment (reprise), see https://github.com/python/cpython/issues/100200).

I also have a fix for one of the tests, see https://github.com/python/cpython/pull/100145.

Also note that databases/py-sqlite3,  databases/py-gdbm, x11-toolkits/py-tkinter do not build unless their setup3.py's are switched to setuptools (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268283), but the fix for this is pending rollback for no good reason.
Comment 6 Henrich Hartzer 2023-04-11 18:04:43 UTC
This seems like it would be good to merge if it's ready.
Comment 7 Henrich Hartzer 2023-11-18 17:24:06 UTC
Any update on this? 3.12 stable is out now.
Comment 8 Anton Rang 2023-11-21 19:48:52 UTC
See also bug 271673; not sure which will be the one used for adding the port.
Comment 9 Wen Heping freebsd_committer freebsd_triage 2023-12-09 08:01:20 UTC
Superceded by 271673