https://github.com/rebooting/python3_11_build
Build and package Python 3.11.9 from source
https://github.com/rebooting/python3_11_build
build docker python ubuntu
Last synced: 2 months ago
JSON representation
Build and package Python 3.11.9 from source
- Host: GitHub
- URL: https://github.com/rebooting/python3_11_build
- Owner: rebooting
- Created: 2025-02-01T01:53:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-08T11:33:51.000Z (over 1 year ago)
- Last Synced: 2025-03-26T13:18:47.704Z (over 1 year ago)
- Topics: build, docker, python, ubuntu
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Python 3.11.9 Build Project
This project provides Docker-based build scripts to compile Python 3.11.9 from source and package it as a portable ZIP file for Ubuntu 24.04.
It's an alternative for me to using deadsnakes PPA or other package managers to install Python on Ubuntu 24.04 to run FastSDcpu.
## Prerequisites
- Docker
- Make
## Usage
### Building Python
1. Build the Docker image:
```sh
make build
```
2. Extract the compiled Python package:
```sh
make extract
```
This will create a `python3.11.9.zip` file in your current directory containing the compiled Python installation.
### Cleaning Up
To remove the Docker image and clean up resources:
```sh
make clean
```
## Details
- Base image: Ubuntu 24.04
- Python version: 3.11.9
- Output: Compiled Python installation in `/usr/local/python3.11` packaged as `python3.11.9.zip`
- Build includes optimizations enabled
- All necessary development dependencies are included in the build process
## Makefile Commands
- `make build`: Builds the Docker image with Python compilation
- `make extract`: Extracts the compiled Python ZIP file from the container
- `make clean`: Removes the Docker container and cleans up system resources