-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from NaturalHistoryMuseum/feature/117-windows…
…-ci-external-dlls Feature/117 windows ci external dlls
- Loading branch information
Showing
4 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
echo Source wheel | ||
rm -rf build dist MANIFEST.in pyzbar.egg-info | ||
cp MANIFEST.in.all MANIFEST.in | ||
./setup.py bdist_wheel | ||
|
||
if [ ! -f pyzbar/libzbar-32.dll ]; then | ||
echo Fetch DLLs | ||
cd pyzbar | ||
curl --location --remote-name-all "https://github.com/NaturalHistoryMuseum/barcode-reader-dlls/releases/download/0.1/{libzbar-32.dll,libiconv-2.dll,libzbar-64.dll,libiconv.dll}" | ||
cd .. | ||
fi | ||
|
||
echo Windows 32-bit wheel | ||
rm -rf build pyzbar.egg-info | ||
cat MANIFEST.in.all MANIFEST.in.win32 > MANIFEST.in | ||
./setup.py bdist_wheel --plat-name=win32 | ||
|
||
echo Windows 32-bit wheel | ||
# Remove these dirs to prevent win32 DLLs from being included in win64 build | ||
rm -rf build pyzbar.egg-info | ||
cat MANIFEST.in.all MANIFEST.in.win64 > MANIFEST.in | ||
./setup.py bdist_wheel --plat-name=win_amd64 | ||
|
||
echo Clean | ||
rm -rf build MANIFEST.in pyzbar.egg-info |