Skip to content

Commit

Permalink
Still working with PyInstaller for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Oct 30, 2023
1 parent c7c2fcb commit 1a6d413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
pip install path
- name: Run build
run: |
Get-ChildItem -Path C:\ -Filter libcasadi.dll -Recurse
pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
- uses: actions/upload-artifact@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ hidden_imports_numpy = collect_submodules('numpy')
hidden_imports = hidden_imports + hidden_imports_numpy

if sys.platform == 'win32':
dlls = [('\\casadi\\libcasadi.dll', '.'),
('casadi\\libcasadi_nlpsol_ipopt.dll', '.'),
('\casadi\\libgfortran-3.dll', '.'),
('\\casadi\\libquadmath-0.dll', '.')]
dlls = [('libcasadi.dll', '.'),
('libcasadi_nlpsol_ipopt.dll', '.'),
('libgfortran-3.dll', '.'),
('libquadmath-0.dll', '.')]
else:
dlls = []

Expand Down

0 comments on commit 1a6d413

Please sign in to comment.