Skip to content

Commit 173d5ff

Browse files
committed
Add py-cython
1 parent 59f43ce commit 173d5ff

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

ports/py-cython/portfile.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO cython/cython
4+
REF ${VERSION}
5+
SHA512 585d3fe810ace55278fcc6ea4508b3b5259320f92998cd688da787cd5f88ac5fc2467025f20da6d968969eb3296ae9c517136d24a4dbb475441271227968f6be
6+
HEAD_REF main
7+
)
8+
9+
vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")
10+
11+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
12+
13+
if(NOT VCPKG_TARGET_IS_WINDOWS)
14+
vcpkg_copy_tools(TOOL_NAMES cygdb cython cythonize DESTINATION "${CURRENT_PACKAGES_DIR}/${VCPKG_PYTHON3_SCRIPTS}" AUTO_CLEAN)
15+
endif()
16+
17+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
18+
set(VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES enabled)

ports/py-cython/vcpkg.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "py-cython",
3+
"version": "3.0.5",
4+
"description": "Cython is a Python compiler that makes writing C extensions for Python as easy as Python itself. Cython is based on Pyrex, but supports more cutting edge functionality and optimizations.",
5+
"homepage": "https://cython.org/",
6+
"license": "Apache-2.0",
7+
"dependencies": [
8+
"py-setuptools",
9+
"python3",
10+
{
11+
"name": "vcpkg-python-scripts",
12+
"host": true
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)