Skip to content

Commit

Permalink
Workaround for editable install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoura committed Dec 30, 2022
1 parent 963012d commit 30b478c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
.PHONY: build

.docs_build_dir:
mkdir -p docs/build

.PHONY: install
# TODO: for pylint and mypy, see https://github.com/PyCQA/pylint/issues/7306
install: export SETUPTOOLS_ENABLE_FEATURES="legacy-editable"
install:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade wheel
python3 -m pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt
python3 -m pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt $(PIP_INSTALL_ARGS)
virtualenv --upgrade-embed-wheels

.PHONY: .install_doc
# TODO: for pylint and mypy, see https://github.com/PyCQA/pylint/issues/7306
.install_doc: export SETUPTOOLS_ENABLE_FEATURES="legacy-editable"
.install_doc:
python3 -m pip install --upgrade --upgrade-strategy eager -r docs/requirements.txt

# run linters
.PHONY: lint
lint:
pre-commit run -a
if type pytype >/dev/null 2>&1; then pytype cardano_clusterlib; fi

.PHONY: build
build:
python setup.py -q sdist bdist_wheel

.PHONY: release
release: build
python3 -m pip install --upgrade twine
twine upload --skip-existing dist/*

.PHONY: .docs_build_dir
.docs_build_dir:
mkdir -p docs/build

# generate sphinx documentation
.PHONY: doc
doc: .docs_build_dir .install_doc
Expand Down

0 comments on commit 30b478c

Please sign in to comment.