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

Can't build from sdist on RPM Linux #450

Open
CNSeniorious000 opened this issue Oct 24, 2024 · 0 comments
Open

Can't build from sdist on RPM Linux #450

CNSeniorious000 opened this issue Oct 24, 2024 · 0 comments

Comments

@CNSeniorious000
Copy link

CNSeniorious000 commented Oct 24, 2024

Issue type

Build/Install

How did you install PythonMonkey?

Installed from pip

OS platform and distribution

Linux VM-12-7-opencloudos 5.4.119-20.0009.32 #1 SMP Thu Jun 6 16:59:39 CST 2024 x86_64 x86_64 x86_64 GNU/Linux

Python version (python --version)

3.12.2

PythonMonkey version (pip show pythonmonkey)

1.0.0

Bug Description

It seems to try to install something with apt-get, but it should use yum instead.

traceback
Building wheels for collected packages: pythonmonkey, pminit
  Building wheel for pythonmonkey (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pythonmonkey (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      Installing dependencies
      Installing apt packages
      sudo: apt-get: command not found
      Traceback (most recent call last):
        File "/tmp/pip-install-istydqub/pythonmonkey_b7e8ae680ca145cb859ba6ad93f5db93/build.py", line 77, in <module>
          build()
        File "/tmp/pip-install-istydqub/pythonmonkey_b7e8ae680ca145cb859ba6ad93f5db93/build.py", line 70, in build
          ensure_spidermonkey()
        File "/tmp/pip-install-istydqub/pythonmonkey_b7e8ae680ca145cb859ba6ad93f5db93/build.py", line 44, in ensure_spidermonkey
          execute("bash ./setup.sh", cwd=TOP_DIR)
        File "/tmp/pip-install-istydqub/pythonmonkey_b7e8ae680ca145cb859ba6ad93f5db93/build.py", line 34, in execute
          raise subprocess.CalledProcessError(return_code, cmd)
      subprocess.CalledProcessError: Command 'bash ./setup.sh' returned non-zero exit status 1.
      Traceback (most recent call last):
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-y8rm7yzj/overlay/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
          return WheelBuilder.make_in(
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-y8rm7yzj/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 88, in make_in
          wb.build(target_dir=directory)
        File "/tmp/pip-build-env-y8rm7yzj/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 123, in build
          self._build(zip_file)
        File "/tmp/pip-build-env-y8rm7yzj/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 172, in _build
          self._run_build_script(self._package.build_script)
        File "/tmp/pip-build-env-y8rm7yzj/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 262, in _run_build_script
          subprocess.check_call([self.executable.as_posix(), build_script])
        File "/root/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/root/.local/share/uv/tools/pip/bin/python', 'build.py']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

Standalone code to reproduce the issue

pip install pythonmonkey

Relevant log output or backtrace

      Installing dependencies
      Installing apt packages
      sudo: apt-get: command not found
      Traceback (most recent call last):
        File "/tmp/pip-install-zf5stqht/pythonmonkey_e98a89fe729d455aa62e9f36847b12d5/build.py", line 77, in <module>
          build()
        File "/tmp/pip-install-zf5stqht/pythonmonkey_e98a89fe729d455aa62e9f36847b12d5/build.py", line 70, in build
          ensure_spidermonkey()
        File "/tmp/pip-install-zf5stqht/pythonmonkey_e98a89fe729d455aa62e9f36847b12d5/build.py", line 44, in ensure_spidermonkey
          execute("bash ./setup.sh", cwd=TOP_DIR)
        File "/tmp/pip-install-zf5stqht/pythonmonkey_e98a89fe729d455aa62e9f36847b12d5/build.py", line 34, in execute
          raise subprocess.CalledProcessError(return_code, cmd)
      subprocess.CalledProcessError: Command 'bash ./setup.sh' returned non-zero exit status 1.
      Traceback (most recent call last):
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/root/.local/share/uv/tools/pip/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3nxx2i53/overlay/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
          return WheelBuilder.make_in(
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3nxx2i53/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 88, in make_in
          wb.build(target_dir=directory)
        File "/tmp/pip-build-env-3nxx2i53/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 123, in build
          self._build(zip_file)
        File "/tmp/pip-build-env-3nxx2i53/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 172, in _build
          self._run_build_script(self._package.build_script)
        File "/tmp/pip-build-env-3nxx2i53/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 262, in _run_build_script
          subprocess.check_call([self.executable.as_posix(), build_script])
        File "/root/.pyenv/versions/3.12.2/lib/python3.12/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/root/.local/share/uv/tools/pip/bin/python', 'build.py']' returned non-zero exit status 1.

Additional info if applicable

No response

What branch of PythonMonkey were you developing on? (If applicable)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant