Commit: Update Python library search path for Linux

This commit is contained in:
Miha Kralj
2023-05-05 08:53:27 -07:00
parent 9714dedcba
commit 957f4da294
2 changed files with 3 additions and 12 deletions
+2 -11
View File
@@ -47,22 +47,13 @@ jobs:
############## Install Python
# - name: Install Python3
# uses: actions/setup-python@v2
# with:
# python-version: 3.x
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-dev
sudo apt-get install -y python3-pip
- name: Install pandas-ta
run: |
pip3 install numpy
pip3 install pandas
pip3 install pandas-ta
python --version
ls /home/runner/.local/lib/
############## Install more tools
+1 -1
View File
@@ -464,7 +464,7 @@ public static class PythonLibrary {
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
List<string> pythonLibraries = new List<string>();
List<string> directoriesToSearch = new List<string> { "/opt/hostedtoolcache/Python" }; // Add more directories as needed
List<string> directoriesToSearch = new List<string> { "/home/runner/.local/lib" }; // Add more directories as needed
string filePattern = "libpython3.*.so";
SearchFiles(directoriesToSearch, filePattern, pythonLibraries);