summaryrefslogtreecommitdiffstats
path: root/lang/python/python3/patches/025-choose-python-config-version.patch
blob: 00c7d7b5cad46a65446bf8aecc09581ca207948a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From 18330902a0ca1b162e1ae938d8024cfb7e7c524d Mon Sep 17 00:00:00 2001
From: Jeffery To <jeffery.to@gmail.com>
Date: Tue, 16 Feb 2021 22:23:50 +0800
Subject: [PATCH] Choose python-config version

--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -2845,7 +2845,7 @@ python-config: $(srcdir)/Misc/python-con
 	@ # On Darwin, always use the python version of the script, the shell
 	@ # version doesn't use the compiler customizations that are provided
 	@ # in python (_osx_support.py).
-	@if test `uname -s` = Darwin; then \
+	@if test "$(USE_PYTHON_CONFIG_PY)" = 1; then \
 		cp python-config.py python-config; \
 	fi