| 7 | Example from `patch-setuptools-distutils.diff` as distributed by MacPorts: |
| 8 | {{{ |
| 9 | . . . |
| 10 | diff --git pyobjc-framework-AVFoundation/pyobjc_setup.py pyobjc-framework-AVFoundation/pyobjc_setup.py |
| 11 | --- pyobjc-framework-AVFoundation/pyobjc_setup.py |
| 12 | +++ pyobjc-framework-AVFoundation/pyobjc_setup.py |
| 13 | @@ -23,9 +23,9 @@ from setuptools import Extension as _Ext |
| 14 | from setuptools import setup as _setup |
| 15 | from setuptools.command import build_ext, build_py, develop, egg_info, install_lib, test |
| 16 | |
| 17 | -from distutils import log |
| 18 | -from distutils.errors import DistutilsError, DistutilsPlatformError |
| 19 | -from distutils.command import build, install |
| 20 | +from setuptools._distutils import log |
| 21 | +from setuptools._distutils.errors import DistutilsError, DistutilsPlatformError |
| 22 | +from setuptools._distutils.command import build, install |
| 23 | . . . |
| 24 | }}} |
| 25 | So essentially, by not doing this, I got it to work. |
| 26 | |