build error

build failed with exit code: 1, message: None

Build logs:

--> FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0215270faf53
DONE 0.0s

--> COPY packages.txt /root/packages.txt
CACHED

--> RUN git lfs install
CACHED

--> RUN apt-get update && apt-get install -y git-lfs
CACHED

--> RUN apt-get update && apt-get install -y         ffmpeg         libsm6         libxext6         cmake         libgl1-mesa-glx
CACHED

--> RUN useradd -m -u 1000 user
CACHED

--> WORKDIR /home/user
CACHED

--> RUN pip install pip==22.0.2
CACHED

--> RUN pip install         datasets         huggingface-hub
CACHED

--> RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y
CACHED

--> WORKDIR /home/user/app
CACHED

--> RUN mkdir app
CACHED

--> COPY requirements.txt /home/user/app/requirements.txt
DONE 0.0s

--> RUN pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/risenW/scikit-learn.git@integrate/hugging-face (from -r requirements.txt (line 1))
  Cloning https://github.com/risenW/scikit-learn.git (to revision integrate/hugging-face) to /tmp/pip-req-build-83f84e_0
  Running command git clone --filter=blob:none --quiet https://github.com/risenW/scikit-learn.git /tmp/pip-req-build-83f84e_0
  Running command git checkout -b integrate/hugging-face --track origin/integrate/hugging-face
  Switched to a new branch 'integrate/hugging-face'
  Branch 'integrate/hugging-face' set up to track remote branch 'integrate/hugging-face' from 'origin'.
  Resolved https://github.com/risenW/scikit-learn.git to commit e22b899396722e8a4572af5e6b6eccf1ddcbb606
  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
  ╰─> [15 lines of output]
      Partial import of sklearn during the build process.
      error: Multiple top-level packages discovered in a flat-layout: ['sklearn', 'build_tools', 'maint_tools', 'asv_benchmarks'].
      
      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.
      
      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:
      
      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names
      
      To find more information, look for "package discovery" on setuptools docs.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× 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.
WARNING: You are using pip version 22.0.2; however, version 22.1.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

--> ERROR: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1