Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cymunk recipe uses distutils #3055

Open
1 task
RobertFlatt opened this issue Aug 24, 2024 · 0 comments
Open
1 task

cymunk recipe uses distutils #3055

RobertFlatt opened this issue Aug 24, 2024 · 0 comments

Comments

@RobertFlatt
Copy link
Contributor

RobertFlatt commented Aug 24, 2024

Checklist

  • [x ] the issue is indeed a bug and not a support request
  • [x ] issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • I have a short, runnable example that reproduces the issue
  • [ x] I reproduced the problem with the latest development version (p4a.branch = develop)
  • [x ] I used the grave accent (aka backticks) to format code or logs when appropriated

Description

Cymunk recipe build fails because it uses Distutils.

Logs

[DEBUG]:        /home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/_distutils_hack/__init__.py:11: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
[DEBUG]:          warnings.warn(
[DEBUG]:        /home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/_distutils_hack/__init__.py:26: UserWarning: Setuptools is replacing distutils.
[DEBUG]:          warnings.warn("Setuptools is replacing distutils.")
[DEBUG]:        Traceback (most recent call last):
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/evdev/arm64-v8a__ndk_target_21/evdev/setup.py", line 104, in <module>
[DEBUG]:            setup(**kw)
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 104, in setup
[DEBUG]:            return distutils.core.setup(**attrs)
[DEBUG]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/_distutils/core.py", line 172, in setup
[DEBUG]:            ok = dist.parse_command_line()
[DEBUG]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/_distutils/dist.py", line 475, in parse_command_line
[DEBUG]:            args = self._parse_command_opts(parser, args)
[DEBUG]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/dist.py", line 869, in _parse_command_opts
[DEBUG]:            nargs = _Distribution._parse_command_opts(self, parser, args)
[DEBUG]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]:          File "/home/bobf/ex/rtest/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/_distutils/dist.py", line 541, in _parse_command_opts
[DEBUG]:            raise DistutilsClassError(
[DEBUG]:        distutils.errors.DistutilsClassError: command class <class '__main__.cmdfactory.<locals>.cls'> must subclass Command
Exception in thread background thread for pid 29757:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/bobf/.local/lib/python3.10/site-packages/sh.py", line 1639, in wrap
    fn(*rgs, **kwargs)
  File "/home/bobf/.local/lib/python3.10/site-packages/sh.py", line 2641, in background_thread
    handle_exit_code(exit_code)
  File "/home/bobf/.local/lib/python3.10/site-packages/sh.py", line 2332, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/bobf/.local/lib/python3.10/site-packages/sh.py", line 826, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant