Skip to content

Commit

Permalink
Get rid of buster
Browse files Browse the repository at this point in the history
  • Loading branch information
weastur committed Jun 19, 2024
1 parent 5ed3058 commit af40b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
28 changes: 5 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.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
.PHONY: all build pack clean python3.12-bookworm python3.12-bullseye clean-python3.12-bullseye 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.12-bookworm python3.12-bullseye python3.12-buster
build: python3.12-bookworm python3.12-bullseye

python3.12-bookworm: clean-python3.12-bookworm
@echo "Build Python 3.12 for Debian 12 (bookworm)"
Expand All @@ -14,7 +14,7 @@ python3.12-bookworm: clean-python3.12-bookworm
--build-arg DEBIAN_RELEASE=bookworm \
--build-arg UBUNTU_RELEASE=jammy \
--build-arg PYTHON_VERSION=3.12 \
--build-arg REPO_TAG=debian/3.12.2-1+jammy3 \
--build-arg REPO_TAG=debian/3.12.4-1+jammy1 \
--output build/bookworm/python3.12 \
--force-rm \
--no-cache \
Expand All @@ -28,28 +28,14 @@ python3.12-bullseye: clean-python3.12-bullseye
--build-arg DEBIAN_RELEASE=bullseye \
--build-arg UBUNTU_RELEASE=focal \
--build-arg PYTHON_VERSION=3.12 \
--build-arg REPO_TAG=debian/3.12.2-1+focal3 \
--build-arg REPO_TAG=debian/3.12.4-1+focal1 \
--output build/bullseye/python3.12 \
--force-rm \
--no-cache \
.
@rm build/bullseye/python3.12/hack

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.12 \
--build-arg REPO_TAG=debian/3.12.2-1+focal3 \
--output build/buster/python3.12 \
--force-rm \
--no-cache \
.
@rm build/buster/python3.12/hack

clean: clean-python3.12-bookworm clean-python3.12-bullseye clean-python3.12-buster
clean: clean-python3.12-bookworm clean-python3.12-bullseye

clean-python3.12-bookworm:
@echo "Clean artifacts of build of Python 3.12 for Debian 12 (bookworm)"
Expand All @@ -58,7 +44,3 @@ clean-python3.12-bookworm:
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.12-buster:
@echo "Clean artifacts of build of Python 3.12 for Debian 10 (buster)"
@rm -rf build/buster/python3.12/*
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ To issue build for a particular version
```shell
make python3.12-bookworm
make python3.12-bullseye
make python3.12-buster
```

Look at the `build/` directory
Expand Down

0 comments on commit af40b41

Please sign in to comment.