mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-13 08:08:05 +00:00
Commit: Update Python library search path for Linux
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user