-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SY-1438 basic calculated channels #995
Changes from 79 commits
2a5f339
823ac6e
a2e4012
3b94589
bae4276
e045b06
cd35080
0be5cc3
ee753f3
cf0deca
3401e42
3547ecd
5f6a002
2fade90
0004480
9d1fea0
8a19ad2
2c7e9c6
e8bbfcc
52de3d1
f62414f
40509e4
a927e0e
02d85e1
74c994a
3c1139a
90b8df4
30d034b
b3bb6cd
faba424
75ac1b8
5861bb5
a863b7f
c800d79
3b56418
448558a
ff78352
a694fbd
cacb53f
b43b710
603bf80
92779d6
bbec96e
d1f7fb6
9ae54ef
614fa89
d6cc473
59cf4bd
540284a
0c4454f
10f0e53
d19072a
78227c0
74f6ef5
2ca1caa
3b454f6
d8ffe99
37501fd
6d93fc4
13e4433
f1fec0f
d535849
4d199dd
e903915
e366fc3
e9b44e3
47abd16
02ae60e
37bc544
fb72e83
12aea6b
b659e8c
b0b0640
282696f
906ac3f
124a8cd
a138c36
b4b0db7
3596532
b26ff7b
db5e1d3
95583cd
5470f9e
3876174
c120ebc
ab2fab7
c078772
787df13
9b3085c
8f1024d
5bb4aa2
d705e7a
c3d979b
e1831b6
8bb6481
5eac7c7
0ed386d
1b3b1d1
6c878c7
18095d8
2a4eb64
955ee7b
57f630b
2607d96
5720ab3
ff90f3b
7cd40b1
d8245be
43c3409
888c64c
9dff2cf
85670e8
35cca4d
caf6981
2d85192
091b04e
34f7500
511fe2a
b20a989
720608b
01e3981
909a2a1
3c55752
66effb4
b0dba1a
38b0945
f23f217
d2de32d
c7be586
f3141a3
a877b4e
3c1b8fb
01a58dc
8e0713a
121ccaa
92ffa68
7a80c7e
eff33e8
46b15d6
8431c4e
c800d5f
4856a25
b35a80f
d43f6a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,5 @@ driver/vendor/mbedtls/mbedtls | |
|
||
# |||| ESLINT |||| | ||
.eslintcache | ||
|
||
python_install |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,6 +235,7 @@ | |
"lineplot", | ||
"Migratable", | ||
"msgpackr", | ||
"mult", | ||
"NavDrawer", | ||
"nsis", | ||
"OPCUA", | ||
|
Large diffs are not rendered by default.
Lham42 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Set up variables | ||
PYTHON_VERSION="3.9.13" | ||
NUMPY_VERSION="1.21.6" | ||
Lham42 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
PYTHON_INSTALL_DIR="$(pwd)/python_install" | ||
|
||
# Download and build Python | ||
curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz | ||
tar xzf Python-${PYTHON_VERSION}.tgz | ||
cd Python-${PYTHON_VERSION} | ||
|
||
# Configure Python for static build | ||
./configure --prefix=${PYTHON_INSTALL_DIR} \ | ||
--disable-shared \ | ||
--enable-optimizations \ | ||
--with-ensurepip=no \ | ||
LDFLAGS="-Wl,-rpath,${PYTHON_INSTALL_DIR}/lib" | ||
|
||
# Build Python | ||
make -j$(nproc) | ||
|
||
# Install Python | ||
make install | ||
|
||
cd .. | ||
|
||
# Install pip (required for NumPy installation) | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
${PYTHON_INSTALL_DIR}/bin/python3 get-pip.py | ||
|
||
# Install NumPy | ||
${PYTHON_INSTALL_DIR}/bin/pip3 install numpy==${NUMPY_VERSION} | ||
|
||
# Combine static libraries | ||
mkdir -p ${PYTHON_INSTALL_DIR}/lib/combined | ||
cd ${PYTHON_INSTALL_DIR}/lib/combined | ||
|
||
# Extract object files from Python static library | ||
ar -x ../libpython3.9.a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't hardcode all of the references to the python version here |
||
|
||
# Extract object files from NumPy static libraries | ||
numpy_lib_path=$(find ${PYTHON_INSTALL_DIR}/lib/python3.9/site-packages/numpy -name '*.a') | ||
for lib in $numpy_lib_path; do | ||
ar -x $lib | ||
done | ||
|
||
# Create combined static library | ||
ar -qc libpython3.9-combined.a *.o | ||
ranlib libpython3.9-combined.a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't hardcode all of the references to the python version here |
||
|
||
cd ../../.. | ||
|
||
# Cleanup | ||
rm Python-${PYTHON_VERSION}.tgz | ||
rm -r Python-${PYTHON_VERSION} | ||
rm get-pip.py | ||
|
||
echo "Build and installation completed successfully." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this file get updated?
client/py/pyproject.toml
did not change.