jpype-project / jpype

JPype is cross language bridge to allow Python programs full access to Java class libraries.
http://www.jpype.org
Apache License 2.0
1.1k stars 180 forks source link

Fail to install because of setuptool change #1205

Closed PrimWILL closed 1 month ago

PrimWILL commented 2 months ago

After removal of test command in setuptool with version 72.0.0, fail to install JPype.

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


- Python version: 3.9
- OS: Amazon linux 2023 (arm64)

Collecting JPype1>=0.7.0 (from konlpy==0.5.2->-r /home/ec2-user/temp/requirements.txt (line 26)) Downloading JPype1-1.5.0.tar.gz (819 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.1/819.1 kB 14.4 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] Traceback (most recent call last): File "/home/ec2-user/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/ec2-user/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/ec2-user/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-6t_et_ky/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-6t_et_ky/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-6t_et_ky/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 497, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-6t_et_ky/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 313, in run_setup exec(code, locals()) File "", line 26, in File "/tmp/pip-install-g05f_xe7/jpype1_306aae43c5094b6a987c28393e0cfd40/setupext/init.py", line 25, in from . import pytester File "/tmp/pip-install-g05f_xe7/jpype1_306aae43c5094b6a987c28393e0cfd40/setupext/pytester.py", line 20, in from setuptools.command.test import test as TestCommand ModuleNotFoundError: No module named 'setuptools.command.test'

ilitygergo commented 2 months ago

Solution can be found here in the meantime: https://github.com/pypa/setuptools/issues/4519#issuecomment-2254983472

PrimWILL commented 2 months ago

@ilitygergo Thx :) I hope this will be solved soon