Skip to content

Commit

Permalink
Do not use setup.py in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 committed Apr 20, 2024
1 parent 6176f45 commit d5b8b6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
27 changes: 7 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ GIT_COMMAND := $(shell which git)

IOSPATH := $(PATH):/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

BUILD_OPTS = build_ext --inplace
BUILD_OPTS_FORCE = $(BUILD_OPTS) -f
BUILD_OPTS_DEBUG = $(BUILD_OPTS_FORCE) -g --cython-gdb
BUILD_OPTS =

INSTALL_OPTIONS = install
INSTALL_OPTIONS =
INSTALL_ROOT =
INSTALL_PREFIX =
INSTALL_LAYOUT =
Expand All @@ -41,23 +39,14 @@ endif
ifneq ($(INSTALL_PREFIX),)
INSTALL_OPTIONS += --prefix=$(INSTALL_PREFIX)
endif
ifneq ($(INSTALL_LAYOUT),)
INSTALL_OPTIONS += --install-layout=$(INSTALL_LAYOUT)
endif

.PHONY: build force mesabuild pdf style hook test batchtest cover clean distclean theming

build:
$(PYTHON) setup.py $(BUILD_OPTS)

force:
$(PYTHON) setup.py $(BUILD_OPTS_FORCE)

debug:
env CFLAGS="-Og" $(PYTHON) setup.py $(BUILD_OPTS_DEBUG)
$(PYTHON) -m pip install -e . $(BUILD_OPTS)

mesabuild:
env USE_MESAGL=1 $(PYTHON) setup.py $(BUILD_OPTS)
env USE_MESAGL=1 $(PYTHON) -m pip install -e . $(BUILD_OPTS)

ios:
-ln -s $(KIVYIOSROOT)/Python-2.7.1/python
Expand Down Expand Up @@ -122,7 +111,7 @@ cover:
coverage html --include='$(KIVY_DIR)*' --omit '$(KIVY_DIR)data/*,$(KIVY_DIR)lib/*,$(KIVY_DIR)tools/*,$(KIVY_DIR)tests/*'

install:
$(PYTHON) setup.py $(INSTALL_OPTIONS)
$(PYTHON) -m pip install -e . $(INSTALL_OPTIONS)

clean:
$(MAKE) -C doc clean
Expand Down Expand Up @@ -154,15 +143,13 @@ theming:

help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build for a standard build"
@echo " build for a standard build (install) in editable mode"
@echo " clean remove generated and compiled files"
@echo " cover create an html coverage report of unittests"
@echo " debug for a debug build (with -g)"
@echo " dist-clean clean then use 'git clean'"
@echo " force for a forced build (with -f)"
@echo " hook add Pep-8 checking as a git precommit hook"
@echo " html to make standalone HTML files"
@echo " install run a setup.py install"
@echo " install install with extra options"
@echo " mesabuild for a build with MesaGL"
@echo " style to check Python code for style issues"
@echo " test run unittests (pytest)"
Expand Down
1 change: 0 additions & 1 deletion doc/doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Cython>=0.24
# Frozen Sphinx requirements for easier pip installation
sphinxcontrib-actdiag
sphinxcontrib-blockdiag
Expand Down

0 comments on commit d5b8b6b

Please sign in to comment.