2 # Copyright (C) 2023 Jeffery To
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-cython
15 PKG_HASH
:=fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213
17 PKG_LICENSE
:=Apache-2.0
18 PKG_LICENSE_FILES
:=LICENSE.txt
19 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
22 HOST_BUILD_DEPENDS
:=python3
/host python-build
/host python-installer
/host python-wheel
/host
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/host-build.mk
27 include ..
/python3-package.mk
28 include ..
/python3-host-build.mk
30 define Package
/python3-cython
34 TITLE
:=Cython compiler for writing C extensions
35 URL
:=https
://cython.org
/
40 define Package
/python3-cython
/description
41 Cython is a language that makes writing C extensions for Python
as easy
42 as Python itself. Cython is based on Pyrex
, but supports more cutting
43 edge functionality and optimizations.
45 The Cython language is very close to the Python language
, but Cython
46 additionally supports calling C functions and declaring C types on
47 variables and class attributes. This allows the compiler to generate
48 very efficient C code from Cython code.
50 This makes Cython the ideal language for wrapping external C libraries
,
51 and for fast C modules that speed up the execution of Python code.
54 $(eval
$(call Py3Package
,python3-cython
))
55 $(eval
$(call BuildPackage
,python3-cython
))
56 $(eval
$(call BuildPackage
,python3-cython-src
))
57 $(eval
$(call HostBuild
))