| Revert "fix: correctly fallback to setuptools (#3219)" (#3311)
This reverts commit 375fee087e408d645a9c30bb1424f16fd148d97c.
Reverting this PR as it causes error in our internal tests. It reaches
this error in python3.11/site-packages/setuptools/_distutils/core.py
```
def run_commands(dist):
"""Given a Distribution object run all the commands,
raising SystemExit errors in the case of failure.
This function assumes that either sys.argv or dist.script_args
is already set accordingly.
"""
try:
dist.run_commands()
except KeyboardInterrupt:
raise SystemExit("interrupted")
except OSError as exc:
if DEBUG:
sys.stderr.write("error: {}\n".format(exc))
raise
else:
raise SystemExit("error: {}".format(exc))
except (DistutilsError, CCompilerError) as msg:
if DEBUG:
raise
else:
raise SystemExit("error: " + str(msg))
return dist
```
| 2 年前 |