#13 In sys.version and initial REPL message, list the source commit as "default"
Merged 3 years ago by churchyard. Opened 3 years ago by churchyard.
rpms/ churchyard/python3.8 master-to-default  into  master

file modified
+10 -1
@@ -17,7 +17,7 @@ 

  #global prerel rc1

  %global upstream_version %{general_version}%{?prerel}

  Version: %{general_version}%{?prerel:~%{prerel}}

- Release: 4%{?dist}

+ Release: 5%{?dist}

  License: Python

  

  
@@ -700,6 +700,12 @@ 

  

  %build

  

+ # The build process embeds version info extracted from the Git repository

+ # into the Py_GetBuildInfo and sys.version strings.

+ # Our Git repository is artificial, so we don't want that.

+ # Tell configure to not use git.

+ export HAS_GIT=not-found

+ 

  # Regenerate the configure script and pyconfig.h.in

  autoconf

  autoheader
@@ -1631,6 +1637,9 @@ 

  # ======================================================

  

  %changelog

+ * Wed Aug 12 2020 Petr Viktorin <pviktori@redhat.com> - 3.8.5-5

+ - In sys.version and initial REPL message, list the source commit as "default"

+ 

  * Mon Aug 03 2020 Lumír Balhar <lbalhar@redhat.com> - 3.8.5-4

  - Add support for upstream architectures' names (patch 353)

  

We create an artificial Git repo to apply patches.
Python build system thinks that it's building from Git and embeds a bogus
branch name into its version string:

$ python3
Python 3.9.0b5 (heads/master-dirty:24c7f56, Aug 3 2020, 00:00:00)
[GCC 10.2.1 20200804 (Red Hat 10.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.

Tell configure that Git is not installed. This reverts that part
of sys.version to "default".

Pull-Request has been merged by churchyard

3 years ago