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

Implicit dependency on rust compiler #179

Open
jeffsf opened this issue Jan 19, 2025 · 2 comments
Open

Implicit dependency on rust compiler #179

jeffsf opened this issue Jan 19, 2025 · 2 comments

Comments

@jeffsf
Copy link

jeffsf commented Jan 19, 2025

It appears that the change to orjson created an install-build dependency on having a rust compiler. As this is unusual for smaller or secured systems, I'd suggest at least notes in the README.

Collecting orjson (from pylutron-caseta)
  Downloading orjson-3.10.15.tar.gz (5.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 11.0 MB/s eta 0:00:00
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      Collecting maturin<2,>=1
        Using cached maturin-1.8.1.tar.gz (197 kB)
        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 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Building wheels for collected packages: maturin
        Building wheel for maturin (pyproject.toml): started
        Building wheel for maturin (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for maturin (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [28 lines of output]
            running bdist_wheel
            running build
            running build_py
            creating build/lib.freebsd-14.2-RELEASE-amd64-cpython-311/maturin
            copying maturin/__main__.py -> build/lib.freebsd-14.2-RELEASE-amd64-cpython-311/maturin
            copying maturin/__init__.py -> build/lib.freebsd-14.2-RELEASE-amd64-cpython-311/maturin
            running egg_info
            writing maturin.egg-info/PKG-INFO
            writing dependency_links to maturin.egg-info/dependency_links.txt
            writing requirements to maturin.egg-info/requires.txt
            writing top-level names to maturin.egg-info/top_level.txt
            reading manifest file 'maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file 'maturin.egg-info/SOURCES.txt'
            running build_ext
            running build_rust
            error: can't find Rust compiler
@mdonoughe
Copy link
Collaborator

In most cases the Rust compiler is not required. You need it because you're running FreeBSD and orjson doesn't publish FreeBSD wheels. https://pypi.org/project/orjson/#files

@jeffsf
Copy link
Author

jeffsf commented Jan 19, 2025

Thanks for looking into it.

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

2 participants