-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindows_install.sh
More file actions
executable file
·73 lines (55 loc) · 1.8 KB
/
windows_install.sh
File metadata and controls
executable file
·73 lines (55 loc) · 1.8 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
if [ -z $1 ]; then
./compile.sh \
--destination-directory="C:/msys64/mingw64/lib/python3.12/site-packages" \
--build=release \
--install
./compile.sh \
--destination-directory="C:/msys64/mingw64/lib/python3.12/site-packages" \
--build=debug \
--install
# for anaconda users only
elif [ "$1" == "anaconda" ]; then
anaconda_dir="C:/Users/$USER/anaconda3"
anaconda_package_dir="$anaconda_dir/Lib/site-packages"
./compile.sh \
--destination-directory="$anaconda_package_dir" \
--build=release \
--install
./compile.sh \
--destination-directory="$anaconda_package_dir" \
--build=debug \
--install
lal_dist_dir="C:/Users/$USER/Desktop/LAL-DISTRIBUTION"
lal_cpp_dir="$lal_dist_dir/latest/windows10-c++-libs-msys64"
# lal dlls
cp $lal_cpp_dir/bin/liblal*.dll $dest_dir/lal
# system dlls
cp $lal_dist_dir/libgcc_s_seh-1.dll $anaconda_dir
cp $lal_dist_dir/libgmp-10.dll $anaconda_dir
cp $lal_dist_dir/libgomp-1.dll $anaconda_dir
cp $lal_dist_dir/libstdc++-6.dll $anaconda_dir
cp $lal_dist_dir/libwinpthread-1.dll $anaconda_dir
# for developers only
elif [ "$1" == "package" ]; then
dest_dir="C:/Users/$USER/Desktop/LAL-DISTRIBUTION/latest/windows10-python3-libs-anaconda"
./compile.sh \
--destination-directory="$dest_dir" \
--build=release \
--install
./compile.sh \
--destination-directory="$dest_dir" \
--build=debug \
--install
lal_dist_dir="C:/Users/$USER/Desktop/LAL-DISTRIBUTION"
lal_cpp_dir="$lal_dist_dir/latest/windows10-c++-libs-msys64"
# lal dlls
cp $lal_cpp_dir/bin/liblal.dll $dest_dir/lal
cp $lal_cpp_dir/bin/liblaloptimized.dll $dest_dir/laloptimized
# system dlls
cp $lal_dist_dir/libgcc_s_seh-1.dll $dest_dir
cp $lal_dist_dir/libgmp-10.dll $dest_dir
cp $lal_dist_dir/libgomp-1.dll $dest_dir
cp $lal_dist_dir/libstdc++-6.dll $dest_dir
cp $lal_dist_dir/libwinpthread-1.dll $dest_dir
fi