Skip to content

How to install on Macos? #33

Description

@i11010520
❯ pip install mrhttp
Collecting mrhttp
  Using cached mrhttp-0.13.tar.gz (78 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: uvloop>0.9.0 in /nix/store/z167axv39xqicfn8m64ivw1rvkwishf5-python3-3.12.9-env/lib/python3.12/site-p
ackages (from mrhttp) (0.21.0)
Building wheels for collected packages: mrhttp
  Building wheel for mrhttp (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for mrhttp (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      /private/tmp/nix-shell.lZ89Bx/pip-build-env-hv16pqtm/overlay/lib/python3.12/site-packages/setuptools/dist.py:760: SetuptoolsD
eprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/mrqclient.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/request.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/__init__.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/httputil.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/memcachedclient.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/mrcacheclient.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/app.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      copying src/mrhttp/router.py -> build/lib.macosx-11.3-arm64-cpython-312/mrhttp
      running build_ext
      building 'mrhttp.internals' extension
      creating build/temp.macosx-11.3-arm64-cpython-312/src/mrhttp/internals
      creating build/temp.macosx-11.3-arm64-cpython-312/src/mrhttp/internals/hash
      creating build/temp.macosx-11.3-arm64-cpython-312/src/mrhttp/utils
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -I/nix/store/ma585pmsp3iwdiwazgig20kj1nsb3
7ss-libxcrypt-4.4.38/include -DDEBUG_PRINT=1 -I./src/mrhttp/internals -I./src/mrhttp/utils -I/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl
0vngk-python3-3.12.9/include/python3.12 -c ./src/mrhttp/internals/app.c -o build/temp.macosx-11.3-arm64-cpython-312/src/mrhttp/inte
rnals/app.o -msse4.2 -mavx2 -mbmi2 -Wunused-variable -std=gnu99 -Wno-discarded-qualifiers -Wno-unused-variable -Wno-unused-function
      clang: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
      clang: warning: argument unused during compilation: '-msse4.2' [-Wunused-command-line-argument]
      clang: error: unsupported option '-mavx2' for target 'aarch64-apple-darwin'
      clang: error: unsupported option '-mbmi2' for target 'aarch64-apple-darwin'
      error: command '/nix/store/x8j5wizxn1qwa0zj3a4rbmipigl614jv-clang-wrapper-19.1.7/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mrhttp
Failed to build mrhttp
ERROR: Could not build wheels for mrhttp, which is required to install pyproject.toml-based projects

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions