- Tools/Demos - gh-128152: Fix a bug where Argument Clinic’s C pre-processor parser tried to parse pre-processor directives inside C comments. Patch by Erlend Aasland. - Tests - gh-128690: Temporarily do not use test_embed in PGO profile builds until the problem with test_init_pyvenv_cfg failing in some configurations is resolved. - Library - gh-128731: Fix ResourceWarning in urllib.robotparser.RobotFileParser.read(). - gh-71339: Add new assertion methods for unittest: assertHasAttr(), assertNotHasAttr(), assertIsSubclass(), assertNotIsSubclass() assertStartsWith(), assertNotStartsWith(), assertEndsWith() and assertNotEndsWith(). - gh-118761: Improve import time of pickle by 25% by removing an unnecessary regular expression. As such, re is no more implicitly available as pickle.re. Patch by Bénédikt Tran. - gh-128661: Fixes typing.evaluate_forward_ref() not showing deprecation when type_params arg is not passed. - gh-128562: Fix possible conflicts in generated tkinter widget names if the widget class name ends with a digit. - gh-128559: Improved import time of asyncio. - gh-128552: Fix cyclic garbage introduced by asyncio.loop.create_task() and asyncio.TaskGroup.create_task() holding a reference to the created task if it is eager. - gh-128340: Add internal thread safe handle to be used OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=32
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
%have_python3 1
|
|
|
|
# commented out legacy macro definitions
|
|
#py3_prefix /usr
|
|
#py3_incdir /usr/include/python3.5m
|
|
#py3_ver 3.5
|
|
|
|
# these should now be provided by macros.python_all
|
|
#python3_sitearch /usr/lib64/python3.5/site-packages
|
|
#python3_sitelib /usr/lib/python3.5/site-packages
|
|
#python3_version 3.5
|
|
|
|
# hard to say if anyone ever used these?
|
|
#py3_soflags cpython-35m-x86_64-linux-gnu
|
|
#py3_abiflags m
|
|
%cpython3_soabi %(python3 -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")
|
|
%py3_soflags %cpython3_soabi
|
|
|
|
# compilation macros that might be in use somewhere
|
|
%py3_compile(O) \
|
|
find %1 -name '*.pyc' -exec rm -f {} ";"\
|
|
python3 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\
|
|
%{-O:\
|
|
find %1 -name '*.pyo' -exec rm -f {} ";"\
|
|
python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\
|
|
}
|
|
|
|
|