mirror of
https://github.com/EDeev/mospolytech-mcp.git
synced 2026-10-08 04:59:47 +03:00
Исправление makefile
This commit is contained in:
parent
f42497c121
commit
c84fbc3a41
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
|
@ -1,12 +1,12 @@
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
SHELL := cmd.exe
|
SHELL := cmd.exe
|
||||||
SYS_PYTHON ?= py -3.14
|
SYS_PYTHON ?= py -3.14
|
||||||
VENV_PYTHON := .venv/Scripts/python.exe
|
VENV_PIP := .venv/Scripts/pip.exe
|
||||||
PY := .venv\Scripts\python.exe
|
PY := .venv\Scripts\python.exe
|
||||||
else
|
else
|
||||||
SYS_PYTHON ?= python3.14
|
SYS_PYTHON ?= python3.14
|
||||||
VENV_PYTHON := .venv/bin/python
|
VENV_PIP := .venv/bin/pip
|
||||||
PY := $(VENV_PYTHON)
|
PY := .venv/bin/python
|
||||||
endif
|
endif
|
||||||
|
|
||||||
STAMP := .venv/.installed
|
STAMP := .venv/.installed
|
||||||
|
|
@ -23,10 +23,10 @@ setup: install .env ## venv, зависимости и .env
|
||||||
|
|
||||||
install: $(STAMP) ## venv и зависимости
|
install: $(STAMP) ## venv и зависимости
|
||||||
|
|
||||||
$(VENV_PYTHON):
|
$(VENV_PIP):
|
||||||
$(SYS_PYTHON) -m venv .venv
|
$(SYS_PYTHON) -m venv .venv
|
||||||
|
|
||||||
$(STAMP): $(VENV_PYTHON) pyproject.toml
|
$(STAMP): $(VENV_PIP) pyproject.toml
|
||||||
$(PY) -m pip install -e ".[dev]"
|
$(PY) -m pip install -e ".[dev]"
|
||||||
@$(PY) -c "import pathlib; pathlib.Path('$(STAMP)').touch()"
|
@$(PY) -c "import pathlib; pathlib.Path('$(STAMP)').touch()"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue