Skip to content
Merged
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 .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2
Expand Down
19 changes: 7 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ RST=\033[0m

NAME := pydpkg
PYMAJOR := 3
PYREV := 11
PYPATCH := 8
PYREV := 13
PYPATCH := 2
PYVERSION := ${PYMAJOR}.${PYREV}.${PYPATCH}
PYENV := ${HOME}/.pyenv/versions/${PYVERSION}
VENV_NAME := ${NAME}-${PYVERSION}
Expand All @@ -31,28 +31,23 @@ uname_s := $(shell uname -s)

ifeq ($(uname_s),Darwin)
PYENV_BIN := /usr/local/bin/pyenv
BREW_SSL := /usr/local/opt/[email protected]
BREW_READLINE := /usr/local/opt/readline
export LDFLAGS = -L${BREW_SSL}/lib -L${BREW_READLINE}/lib
export CFLAGS = -I${BREW_SSL}/include -I${BREW_READLINE}/include
export CPPFLAGS = -I${BREW_SSL}/include -I${BREW_READLINE}/include
export LDFLAGS = -L${BREW_READLINE}/lib
export CFLAGS = -I${BREW_READLINE}/include
export CPPFLAGS = -I${BREW_READLINE}/include

ifeq ($(uname_m),arm64)
ARCH_PREFIX := arch -x86_64
endif

${BREW_READLINE}:
${ARCH_PREFIX} brew install readline

${BREW_SSL}:
${ARCH_PREFIX} brew install [email protected]
else
PYENV_BIN := ${HOME}/.pyenv/bin/pyenv
${BREW_READLINE}: .PHONY
${BREW_SSL}: .PHONY
endif

${PYENV}: ${BREW_SSL} ${BREW_READLINE} ${PYENV_BIN}
${PYENV}: ${BREW_READLINE} ${PYENV_BIN}
${ARCH_PREFIX} ${PYENV_BIN} install -s ${PYVERSION}

${VENV}: ${PYENV}
Expand Down Expand Up @@ -82,7 +77,7 @@ nuke: clean
@echo -e "${RED}*** Nuking your virtualenv: ${WHITE}${VENV_NAME}${RST}"
rm -f .python-version
${PYENV_BIN} uninstall -f ${VENV_NAME}
rm -rf ${VENV_DIR}
rm -rf ${VENV}

# usually there's no reason to uninstall python itself, and reinstalling
# it is so very very slow
Expand Down
Loading