forked from mozman/ezdxf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.template
48 lines (40 loc) · 1.21 KB
/
makefile.template
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
# Copyright (c) 2020-2023, 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
.PHONY: build test0 test1 clean sdist bdist packages
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.cpp
rm -f $(ACC)/matrix44.cpp
rm -f $(ACC)/bezier4p.cpp
rm -f $(ACC)/bezier3p.cpp
rm -f $(ACC)/bspline.cpp
rm -f $(ACC)/construct.cpp
rm -f $(ACC)/mapbox_earcut.cpp
rm -f $(ACC)/linetypes.cpp
rm -f $(ACC)/np_support.cpp
# assuming mypy and ezdxf is installed, ezdxf maybe in development mode:
# > pip install -e .
mypy:
mypy --ignore-missing-imports -p ezdxf