Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exe-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# requirements for the standalone executable
pyinstaller==4.6; platform.machine == "x86_64"
pyinstaller==5.6; platform.machine == "x86_64"
# aarch64 requires a later version due to the use of a newer centos version.
# see https://github.com/pyinstaller/pyinstaller/issues/5540
pyinstaller==4.10; platform.machine == "aarch64" or sys.platform == "win32"
Expand Down
2 changes: 1 addition & 1 deletion granulate-utils
9 changes: 5 additions & 4 deletions pyi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ RUN if grep -q "CentOS Linux 8" /etc/os-release ; then \
./fix_centos8.sh; \
fi

# python 3.10 installation
# python 3.11 installation
WORKDIR /python
RUN yum install -y \
bzip2-devel \
Expand All @@ -159,8 +159,9 @@ RUN yum install -y \
yum clean all
COPY ./scripts/openssl_build.sh .
RUN ./openssl_build.sh
COPY ./scripts/python310_build.sh .
RUN ./python310_build.sh
COPY ./scripts/python311_build.sh .
RUN ./python311_build.sh && \
ln -s /usr/bin/python3.11 /usr/bin/python3

# gProfiler part

Expand All @@ -181,7 +182,7 @@ RUN set -e; \
# needed for aarch64, scons & wheel are needed to build staticx
RUN set -e; \
if [ "$(uname -m)" = "aarch64" ]; then \
ln -s /usr/lib64/python3.10/lib-dynload /usr/lib/python3.10/lib-dynload; \
ln -s /usr/lib64/python3.11/lib-dynload /usr/lib/python3.11/lib-dynload; \
fi
RUN set -e; \
if [ "$(uname -m)" = "aarch64" ]; then \
Expand Down
12 changes: 0 additions & 12 deletions scripts/python310_build.sh

This file was deleted.

12 changes: 12 additions & 0 deletions scripts/python311_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
#
# Copyright (c) Granulate. All rights reserved.
# Licensed under the AGPL3 License. See LICENSE.md in the project root for license information.
#
set -euo pipefail

wget https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tgz
tar -xzf Python-3.11.3.tgz
cd Python-3.11.3
./configure --enable-shared --prefix=/usr LDFLAGS="-Wl,-rpath /usr/lib"
make -j "$(nproc)" && make -j "$(nproc)" altinstall