Files
macports-ports/python/py-dulwich/files/patch-archflags.diff
Dan Villiom Podlaski Christiansen 00839b883a py-dulwich: update to 0.21.7
2024-01-13 23:54:54 +01:00

27 lines
880 B
Diff

--- setup.py.orig 2017-11-11 09:35:31.000000000 -0600
+++ setup.py 2018-02-02 15:27:00.000000000 -0600
@@ -7,23 +7,6 @@ import sys
from setuptools import Extension, setup
-if sys.platform == "darwin" and os.path.exists("/usr/bin/xcodebuild"):
- # XCode 4.0 dropped support for ppc architecture, which is hardcoded in
- # distutils.sysconfig
- import subprocess
-
- p = subprocess.Popen(
- ["/usr/bin/xcodebuild", "-version"],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- env={},
- )
- out, err = p.communicate()
- for line in out.splitlines():
- line = line.decode("utf8")
- # Also parse only first digit, because 3.2.1 can't be parsed nicely
- if line.startswith("Xcode") and int(line.split()[1].split(".")[0]) >= 4:
- os.environ["ARCHFLAGS"] = ""
tests_require = ["fastimport"]