How to add Setup file in 3D slicer's site-package?

Operating system: window 10
Slicer version: 5.2.1


I created a setup.py to use all functions and classes declared in the whole project via "Import Total" declaration.

It works well as intended in my local, but to make it work well in slicer, can I put the setting of this setup file as slicer’s site-package?

image

Shouldn’t I just add the packaging file I created to slicer’s site-package?

# install my_python_package into 3d slicer
pip_install('SlicerPathTest-1.0.0-py3-none-any.whl')


# error log
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\LJW\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py", line 3571, in pip_install
    _executePythonModule('pip', args)
  File "C:\Users\LJW\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py", line 3533, in _executePythonModule
    logProcessOutput(proc)
  File "C:\Users\LJW\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py", line 3502, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/LJW/AppData/Local/NA-MIC/Slicer 5.2.1/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'SlicerPathTest-1.0.0-py3-none-any.whl']' returned non-zero exit status 1.

I think this will solve the problem, but what should I do?

This is probably due to a wrong path specification for the file
SlicerPathTest-1.0.0-py3-none-any.whl. If you don’t specify the full path to
the file, PythonSlicer will assume the file lies on the default working
directory, which should be the path where the Slicer or PythonSlicer executable
is. Try giving the full path to the file and let us know if it worked out.