3 Star 0 Fork 1

mirrors_mozman/ezdxf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
makefile.template 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
mozman 提交于 2024-02-28 07:32 . add pypy support for running tests
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_mozman/ezdxf.git
[email protected]:mirrors_mozman/ezdxf.git
mirrors_mozman
ezdxf
ezdxf
master

搜索帮助