Skip to content

Commit

Permalink
Include Qt dlls in Windows wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Aug 13, 2023
1 parent 398ae6d commit 239df02
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_cbsdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
- name: Build Wheels
shell: bash -el {0}
run: |
if [[ "${{ matrix.config.name }}" = windows-x64 ]]; then
cp install/bin/Qt*.dll cerebus/
fi
conda create -n py39 python=3.9 numpy Cython pip wheel setuptools
conda activate py39
pip wheel . -w dist/
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ Release/
cerebus/cbpy.so
cerebus/cbpy.cpp
cerebus/cbpyw.cpp
cerebus/*.dll

cmake-build*/
2 changes: 2 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Note: This may generate an error related to the CLI builds. Please see further i
* Windows: `set QTDIR=C:\Qt\6.5.2\msvc2019_64`
* Mac: `set QTDIR==$(brew --prefix qt6)`
* Windows: Close Visual Studio.
* Windows: Copy required Qt dlls into the cerebus tree so they get bundled in the wheel:
* `copy install\bin\Qt*.dll cerebus\`
* Install locally: `pip install .`
* or, if you are making a wheel to bring to another machine,
* activate an environment matching the target machine,
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ urls = {homepage = "https://github.com/CerebusOSS/CereLink"}
[tool.setuptools.packages.find]
include = ["cerebus*"] # package names should match these glob patterns (["*"] by default)

[tool.setuptools.package-data]
cerebus = ["*.dll"]

[tool.setuptools.dynamic]
version = {attr = "cerebus.__version__"}
readme = {file = ["README.md"]}

0 comments on commit 239df02

Please sign in to comment.