Python Package Built in Oryx Pointing to Wrong Python Installation
Developer4190 opened this issue · 1 comments
Hello,
I have been trying to understand this issue.
I am currently running a Azure Python Function App (On a Dedicated Plan). During the build process for the function app, I pip install a package which runs a build itself. The issue here, is that once the build process is run for the package, the package thinks that the Python interpreter location is at /tmp/oryx/platforms/python/3.10.4, rather than the user python location, when run.
Ie.
Source directory :/ tmp/....
Destination directory: /tmp/build/expressbuild
Python Version: **/tmp/oryx/platforms/python/3.10.4/**. [NOTE: This is where the package thinks Python is it seems].....
Running pip install....
Copying files to destination directory 'tmp/build/expressbuild'
Is there a way around this issue?
So the issue is that in the module created, the shebang is the following:
#!/tmp/oryx/platforms/python/3.10.4/bin/python3.10
Is there a way to have this shebang point to 'usr/local/bin/python'? Or does this need to be manually adjusted after deployment?