1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
# Copyright (c) 2020-2024, Manfred Moitzi
# License: MIT License
#
# Makefile for inplace compiling and testing the ezdxf package with Cython extensions
#
# For Windows is an installation of MSYS or MinGW required and their "/bin"
# folders have to be added to the PATH environment variable.
# Copy this template to "makefile" and modify it to your needs,
# or use "make -f makefile.template <target>"
# The generic "makefile" is not tracked by git.
ACC = src/ezdxf/acc
# For Windows:
# PYTHON3 = py
# For Linux:
PYTHON3 = python3
PYPY = pypy3
.PHONY: build test0 test1 clean
build:
$(PYTHON3) -m pip install --no-build-isolation --editable .
test0: build
$(PYTHON3) -m pytest tests
test1: test0
$(PYTHON3) -m pytest integration_tests
clean:
rm -f $(ACC)/*.pyd
rm -f $(ACC)/*.html
rm -fR ./build
# Autogenerated C source files
rm -f $(ACC)/vector.c*
rm -f $(ACC)/matrix44.c*
rm -f $(ACC)/bezier4p.c*
rm -f $(ACC)/bezier3p.c*
rm -f $(ACC)/bspline.c*
rm -f $(ACC)/construct.c*
rm -f $(ACC)/mapbox_earcut.c*
rm -f $(ACC)/linetypes.c*
rm -f $(ACC)/np_support.c*
build-pypy:
$(PYPY) -m pip install -U setuptools wheel typing_extensions pyparsing numpy fonttools Pillow
$(PYPY) -m pip install --no-build-isolation --editable .
test-pypy: build-pypy
$(PYPY) -m pytest tests integration_tests
# assuming mypy and ezdxf is installed, ezdxf maybe in development mode:
# > pip install -e .
mypy:
mypy --ignore-missing-imports -p ezdxf
|