fuweng11 opened a new issue, #11916:
URL: https://github.com/apache/inlong/issues/11916

   ### Description
   
   Python SDK supports installation to the site packages directory in virtual 
environments.
   
   The current Python SDK installation script uses site. getSitepackages() to 
obtain the global site packages path of the current Python interpreter, while 
in most virtual environments (such as venv, virtualinv), getsitepackages() 
still returns the global Python site packages path, rather than the virtual 
environment's own package directory. This will result in the compiled SO file 
being unable to be installed into the virtual environment's package directory 
by default when users use the virtual environment. Users will need to enter the 
virtual environment package directory path themselves during the installation 
process. We hope to use scripts to automatically identify the virtual 
environment, check the virtual environment's package directory, and provide 
prompts in the terminal, supporting the path setting of stepackage.
   
   1.If the user is using a virtual environment, the script will automatically 
detect and retrieve the package directory of the virtual environment currently 
being used by the user
   2.When compiling the SO file, remind the user in the terminal that a virtual 
environment is being used, and let the user choose to install to the global 
site packages path, virtual environment site packages path, or custom site 
packages path
   3.Improve the user documentation based on script implementation and usage 
methods
   
   ### Use case
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@inlong.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to