forked from NaturalHistoryMuseum/pyzbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·25 lines (21 loc) · 812 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·25 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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