From 1bb5beb0b6d0de16a66ce1802485f4128be08e40 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Mon, 30 Oct 2023 10:28:15 -0400 Subject: [PATCH] Trying to hardcode the Windows paths just to see if this method will work --- .github/workflows/pyinstaller.yml | 4 ++-- pyinstaller.spec | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index 6999c1b..7a06dcb 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -66,8 +66,8 @@ jobs: - name: Run build run: | # Get-ChildItem -Path C:\ -Filter libcasadi.dll -Recurse - CPATH=$pythonLocation/include/python${{ matrix.python-version }}m - echo "CPATH=$CPATH" >> $GITHUB_ENV + # CPATH=$pythonLocation/include/python${{ matrix.python-version }}m + # echo "CPATH=$CPATH" >> $GITHUB_ENV pyinstaller pyinstaller.spec ${{ github.event.inputs.type }} - uses: actions/upload-artifact@v2 with: diff --git a/pyinstaller.spec b/pyinstaller.spec index 0f2916a..d1f8316 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -48,11 +48,11 @@ hidden_imports_numpy = collect_submodules('numpy') hidden_imports = hidden_imports + hidden_imports_numpy if sys.platform == 'win32': - print(os.path.join(os.environ['CPATH'])) - dlls = [(os.path.join(os.environ['CPATH'], 'libcasadi.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libcasadi_nlpsol_ipopt.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libgfortran-3.dll'), '.'), - (os.path.join(os.environ['CPATH'], 'libquadmath-0.dll'), '.')] + # print(os.path.join(os.environ['CPATH'])) + dlls = [('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libcasadi.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libcasadi_nlpsol_ipopt.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libgfortran-3.dll', '.'), + ('C:\hostedtoolcache\windows\Python\3.10.11\x64\Lib\site-packages\casadi\libquadmath-0.dll', '.')] else: dlls = []