-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavel Sapezhka
committed
Oct 3, 2023
1 parent
75823f7
commit d818425
Showing
1 changed file
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
.PHONY: all build pack clean python3.11-bookworm epython3.11-bullseye python3.11-buster clean-python3.11-bullseye clean-python3.11-buster clean-python3.11-bookworm | ||
.PHONY: all build pack clean python3.12-bookworm python3.12-bullseye python3.12-buster clean-python3.12-bullseye clean-python3.12-buster clean-python3.12-bookworm | ||
|
||
all: pack | ||
|
||
pack: build | ||
@find build/ -maxdepth 1 -mindepth 1 ! -path . -type d -exec sh -c 'tar -cvjSf "$(basename {}).tar.bz2" "$(basename {})"' \; | ||
|
||
build: python3.11-bookworm python3.11-bullseye python3.11-buster | ||
build: python3.12-bookworm python3.12-bullseye python3.12-buster | ||
|
||
python3.11-bookworm: clean-python3.11-bookworm | ||
@echo "Build Python 3.11 for Debian 12 (bookworm)" | ||
@mkdir -p build/bookworm/python3.11 | ||
python3.12-bookworm: clean-python3.12-bookworm | ||
@echo "Build Python 3.12 for Debian 12 (bookworm)" | ||
@mkdir -p build/bookworm/python3.12 | ||
@DOCKER_BUILDKIT=1 docker build \ | ||
--build-arg DEBIAN_RELEASE=bookworm \ | ||
--build-arg UBUNTU_RELEASE=jammy \ | ||
--build-arg PYTHON_VERSION=3.11 \ | ||
--build-arg REPO_TAG=debian/3.11.5-1+jammy1 \ | ||
--output build/bookworm/python3.11 \ | ||
--build-arg PYTHON_VERSION=3.12 \ | ||
--build-arg REPO_TAG=debian/3.12.0-1+jammy1 \ | ||
--output build/bookworm/python3.12 \ | ||
--force-rm \ | ||
--no-cache \ | ||
. | ||
@rm build/bookworm/python3.11/hack | ||
@rm build/bookworm/python3.12/hack | ||
|
||
python3.11-bullseye: clean-python3.11-bullseye | ||
@echo "Build Python 3.11 for Debian 11 (bullseye)" | ||
@mkdir -p build/bullseye/python3.11 | ||
python3.12-bullseye: clean-python3.12-bullseye | ||
@echo "Build Python 3.12 for Debian 11 (bullseye)" | ||
@mkdir -p build/bullseye/python3.12 | ||
@DOCKER_BUILDKIT=1 docker build \ | ||
--build-arg DEBIAN_RELEASE=bullseye \ | ||
--build-arg UBUNTU_RELEASE=focal \ | ||
--build-arg PYTHON_VERSION=3.11 \ | ||
--build-arg REPO_TAG=debian/3.11.5-1+focal1 \ | ||
--output build/bullseye/python3.11 \ | ||
--build-arg PYTHON_VERSION=3.12 \ | ||
--build-arg REPO_TAG=debian/3.12.0-1+focal1 \ | ||
--output build/bullseye/python3.12 \ | ||
--force-rm \ | ||
--no-cache \ | ||
. | ||
@rm build/bullseye/python3.11/hack | ||
@rm build/bullseye/python3.12/hack | ||
|
||
python3.11-buster: clean-python3.11-buster | ||
@echo "Build Python 3.11 for Debian 10 (buster)" | ||
@mkdir -p build/buster/python3.11 | ||
python3.12-buster: clean-python3.12-buster | ||
@echo "Build Python 3.12 for Debian 10 (buster)" | ||
@mkdir -p build/buster/python3.12 | ||
@docker buildx build --platform linux/amd64 \ | ||
--build-arg DEBIAN_RELEASE=buster \ | ||
--build-arg UBUNTU_RELEASE=focal \ | ||
--build-arg PYTHON_VERSION=3.11 \ | ||
--build-arg REPO_TAG=debian/3.11.5-1+focal1 \ | ||
--output build/buster/python3.11 \ | ||
--build-arg PYTHON_VERSION=3.12 \ | ||
--build-arg REPO_TAG=debian/3.12.0-1+focal1 \ | ||
--output build/buster/python3.12 \ | ||
--force-rm \ | ||
--no-cache \ | ||
. | ||
@rm build/buster/python3.11/hack | ||
@rm build/buster/python3.12/hack | ||
|
||
clean: clean-python3.11-bookworm clean-python3.11-bullseye clean-python3.11-buster | ||
clean: clean-python3.12-bookworm clean-python3.12-bullseye clean-python3.12-buster | ||
|
||
clean-python3.11-bookworm: | ||
@echo "Clean artifacts of build of Python 3.11 for Debian 12 (bookworm)" | ||
@rm -rf build/bookworm/python3.11/* | ||
clean-python3.12-bookworm: | ||
@echo "Clean artifacts of build of Python 3.12 for Debian 12 (bookworm)" | ||
@rm -rf build/bookworm/python3.12/* | ||
|
||
clean-python3.11-bullseye: | ||
@echo "Clean artifacts of build of Python 3.11 for Debian 11 (bullseye)" | ||
@rm -rf build/bullseye/python3.11/* | ||
clean-python3.12-bullseye: | ||
@echo "Clean artifacts of build of Python 3.12 for Debian 11 (bullseye)" | ||
@rm -rf build/bullseye/python3.12/* | ||
|
||
clean-python3.11-buster: | ||
@echo "Clean artifacts of build of Python 3.11 for Debian 10 (buster)" | ||
@rm -rf build/buster/python3.11/* | ||
clean-python3.12-buster: | ||
@echo "Clean artifacts of build of Python 3.12 for Debian 10 (buster)" | ||
@rm -rf build/buster/python3.12/* |