Thomas Basler 71c99b2423 Make shared lib and adjust install path
Otherwise the include files are generated in /include/lib/... instead of
/usr/include/lib/
2025-01-29 20:59:54 +01:00
2025-01-29 19:38:13 +01:00
2025-01-29 19:38:13 +01:00
2025-01-29 19:43:13 +01:00

Create custom Debian Package for python

This script creates a debian package of a custom python version and uploads it to a gitea package repository.

Requirements

Docker

Step 1) Update your system

Before starting, ensure your system is up-to-date.

You can do that with the following commands:

sudo apt update 
sudo apt upgrade

Step 2) Install necessary packages

Next install the necessary packages for setting up the Docker repository:

sudo apt install ca-certificates curl gnupg dpkg lsb-release

Step 3) Add Dockers official GPG key

You can use the following commands to add Docker's official GPG key to your system:

sudo install -m 0755 -d /etc/apt/keyrings 
sudo curl -sS https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor > /usr/share/keyrings/docker-ce.gpg
sudo chmod a+r /usr/share/keyrings/docker-ce.gpg

Step 4) Set up the Docker repository

Add the Docker repository to your APT sources:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-ce.gpg] https://download.docker.com/linux/debian $(lsb_release -sc) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Step 5) Update the package index

Next update the package index to include the Docker repository:

sudo apt update

Step 6) Install Docker Engine, Docker CLI, and Docker Compose

Finally, install Docker Engine, Docker CLI, and the Docker Compose plugin:

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Other dependencies

sudo apt install git curl

Install and run

Preparation

git clone https://git.binary-kitchen.de/homeautomation/python
cd python
cp .env.sample .env

Edit the file .env to match your requirements and execute

./create_package.sh
Description
No description provided
Readme 34 KiB
Languages
Shell 100%