diff --git a/00189-use-rpm-wheels.patch b/00189-use-rpm-wheels.patch index 0152d36f03a029ef3c69cbf2bb9d1d0675d2366a..522ac6aa9922dc1332551797b99b7004ad8ae5df 100644 --- a/00189-use-rpm-wheels.patch +++ b/00189-use-rpm-wheels.patch @@ -1,5 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Wed, 15 Aug 2018 15:36:29 +0200 +Subject: [PATCH] 00189: Instead of bundled wheels, use our RPM packaged wheels + +We keep them in /usr/share/python-wheels + +Downstream only: upstream bundles +We might eventually pursuit upstream support, but it's low prio +--- + Lib/ensurepip/__init__.py | 32 ++++++++++++++++++++++---------- + 1 file changed, 22 insertions(+), 10 deletions(-) + diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py -index 4748ba4..fc02255 100644 +index f3152a55d4..f58dab1800 100644 --- a/Lib/ensurepip/__init__.py +++ b/Lib/ensurepip/__init__.py @@ -1,6 +1,7 @@ @@ -12,15 +25,15 @@ index 4748ba4..fc02255 100644 import runpy import tempfile @@ -8,10 +9,24 @@ import tempfile - + __all__ = ["version", "bootstrap"] - + +_WHEEL_DIR = "/usr/share/python-wheels/" - --_SETUPTOOLS_VERSION = "41.2.0" + +-_SETUPTOOLS_VERSION = "47.1.0" +_wheels = {} - --_PIP_VERSION = "19.2.3" + +-_PIP_VERSION = "20.1.1" +def _get_most_recent_wheel_version(pkg): + prefix = os.path.join(_WHEEL_DIR, "{}-".format(pkg)) + _wheels[pkg] = {} @@ -35,14 +48,14 @@ index 4748ba4..fc02255 100644 +_SETUPTOOLS_VERSION = _get_most_recent_wheel_version("setuptools") + +_PIP_VERSION = _get_most_recent_wheel_version("pip") - + _PROJECTS = [ - ("setuptools", _SETUPTOOLS_VERSION), + ("setuptools", _SETUPTOOLS_VERSION, "py3"), @@ -105,13 +120,10 @@ def _bootstrap(*, root=None, upgrade=False, user=False, # additional paths that need added to sys.path additional_paths = [] - for project, version in _PROJECTS: -- wheel_name = "{}-{}-py2.py3-none-any.whl".format(project, version) + for project, version, py_tag in _PROJECTS: +- wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag) - whl = pkgutil.get_data( - "ensurepip", - "_bundled/{}".format(wheel_name), @@ -53,6 +66,6 @@ index 4748ba4..fc02255 100644 + with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp: + with open(os.path.join(tmpdir, wheel_name), "wb") as fp: + fp.write(sfp.read()) - + additional_paths.append(os.path.join(tmpdir, wheel_name)) - + diff --git a/Python-3.8.3.tar.xz b/Python-3.8.5.tar.xz similarity index 66% rename from Python-3.8.3.tar.xz rename to Python-3.8.5.tar.xz index 4e69cb022400a92818315741a80cfa6eba1b86d2..cc9efe2603384e4d57123c1d6f3bfe55cb7a76e5 100644 Binary files a/Python-3.8.3.tar.xz and b/Python-3.8.5.tar.xz differ diff --git a/python-385 b/python-385 new file mode 100644 index 0000000000000000000000000000000000000000..9824719704d771d08545ad532c66a0977ed22dfc --- /dev/null +++ b/python-385 @@ -0,0 +1,1955 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Download Python | Python.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+

Notice: While Javascript is not essential for this website, your interaction with the content will be limited. Please turn Javascript on for the full experience.

+
+ + + + +
+ + + +
+ + + + +
+ +
+ +
+ + + + + + + +
+ + +

Active Python Releases

+

For more information visit the Python Developer's Guide.

+ +
+ Python version + Maintenance status + First released + End of support + Release schedule +
+ +
+ + +
+ +

Looking for a specific release?

+

Python releases by version number:

+ +
+ Release version + Release date +   + Click for more +
+ +

View older releases

+ +
+ + +
+ +
+

Licenses

+

All Python releases are Open Source. Historically, most, but not all, Python releases have also been GPL-compatible. The Licenses page details GPL-compatibility and Terms and Conditions.

+

Read more

+ +
+ +
+

Sources

+

For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.

+ +

Download the latest Python 3 and Python 2 source.

+ +

Read more

+ +
+ +
+

Alternative Implementations

+

This site hosts the "traditional" implementation of Python (nicknamed CPython). A number of alternative implementations are available as well.

+

Read more

+ +
+ +
+

History

+

Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others.

+

Read more

+ +
+ +
+ + + +
+

Information about specific ports, and developer info

+ + +
+ +
+

OpenPGP Public Keys

+

+Source and binary executables are signed by the release manager or binary builder using their +OpenPGP key. Release files for currently supported releases are signed by the following: +

+ +
+

+Release files for older releases which have now reached end-of-life may have been signed by one of the following: +

+ +
+

You can import a person's public keys from a public keyserver network server +you trust by running a command like:

+ +
+gpg --recv-keys [key id]
+
+ +

+or, in many cases, public keys can also be found +at keybase.io. +On the version-specific download pages, you should see a link to both the +downloadable file and a detached signature file. To verify the authenticity +of the download, grab both files and then run this command:

+ +
+gpg --verify Python-3.6.2.tgz.asc
+
+ +

Note that you must use the name of the signature file, and you should use the +one that's appropriate to the download you're verifying.

+ +
    +
  • (These instructions are geared to +GnuPG and Unix command-line users.) +
  • +
+ + +

Other Useful Items

+
    +
  • Looking for 3rd party Python modules? The +Package Index has many of them.
  • +
  • You can view the standard documentation +online, or you can download it +in HTML, PostScript, PDF and other formats. See the main +Documentation page.
  • +
  • Information on tools for unpacking archive files +provided on python.org is available.
  • +
  • Tip: even if you download a ready-made binary for your +platform, it makes sense to also download the source. +This lets you browse the standard library (the subdirectory Lib) +and the standard collections of demos (Demo) and tools +(Tools) that come with it. There's a lot you can learn from the +source!
  • +
  • There is also a collection of Emacs packages +that the Emacsing Pythoneer might find useful. This includes major +modes for editing Python, C, C++, Java, etc., Python debugger +interfaces and more. Most packages are compatible with Emacs and +XEmacs.
  • +
+ +

Want to contribute?

+ +

Want to contribute? See the Python Developer's Guide +to learn about how Python development is managed.

+
+
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/python3.spec b/python3.spec index 5336b2930068674d0644cd3ddab3fb1b9cd83e19..e1761c14b7212a2f33ffc49a20e1c920edf4f1bf 100644 --- a/python3.spec +++ b/python3.spec @@ -2,7 +2,7 @@ Name: python3 Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ -Version: 3.8.3 +Version: 3.8.5 Release: 1 License: Python @@ -392,7 +392,6 @@ LD_LIBRARY_PATH=$(pwd)/build/debug $(pwd)/build/debug/python -m test.regrtest \ -x test_asyncio export OPENSSL_CONF=/non-existing-file - LD_LIBRARY_PATH=$(pwd)/build/optimized $(pwd)/build/optimized/python -m test.pythoninfo WITHIN_PYTHON_RPM_BUILD= \ @@ -789,6 +788,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Sat Aug 1 2020 wenzhanli - 3.8.5-1 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:update version 3.8.5 + * Fri Jun 5 2020 hanxinke - 3.8.3-1 - Update to Python 3.8.3