Files
macports-ports/python/py-pyobjc6/files/patch-install.py.diff
Sergey Fedorov 76276951b6 py-pyobjc6: port for old systems (#22292)
The current version of py-pyobjc is unsupported on old systems.
Provide an alternative. Version has been advised by upstream:
https://github.com/ronaldoussoren/pyobjc/issues/587
2024-01-29 10:34:43 -05:00

21 lines
891 B
Diff

--- install.py.orig 2020-03-25 12:26:08.000000000 -0400
+++ install.py 2020-04-01 07:49:00.000000000 -0400
@@ -187,17 +187,6 @@
def build_project(project, extra_args):
proj_dir = os.path.join(TOPDIR, project)
- # First ask distutils to clean up
- print("Cleaning {!r} using {!r}".format(project, sys.executable))
- status = subprocess.call([sys.executable, "setup.py", "clean"], cwd=proj_dir)
- if status != 0:
- print("Cleaning of {!r} failed, status {}".format(project, status))
- return False
-
- # Explicitly remove the 'build' directory, just in case...
- if os.path.exists(os.path.join(proj_dir, "build")):
- shutil.rmtree(os.path.join(proj_dir, "build"))
-
print("Installing {!r} using {!r}".format(project, sys.executable))
status = subprocess.call(
[sys.executable, "setup.py", "install"] + extra_args, cwd=proj_dir