Skip to content

Commit

Permalink
Trying to hardcode the Windows paths just to see if this method will …
Browse files Browse the repository at this point in the history
…work
  • Loading branch information
jmwright committed Oct 30, 2023
1 parent 92fb68e commit 1bb5beb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit 1bb5beb

Please sign in to comment.