Skip to content

Commit

Permalink
Add python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 14, 2024
1 parent 152810a commit 0ff6542
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
11 changes: 11 additions & 0 deletions vcpkg/ports/py-qgis-requirements/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(BUILD_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")

file(MAKE_DIRECTORY ${BUILD_DIR})

vcpkg_execute_required_process(
COMMAND "${CURRENT_INSTALLED_DIR}/tools/python3/python${VCPKG_HOST_EXECUTABLE_SUFFIX}" "-m" "pip" "install" "-r" "${CURRENT_PORT_DIR}/requirements.txt" "--target" "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}"
WORKING_DIRECTORY "${BUILD_DIR}"
LOGNAME "requirements-install-${TARGET_TRIPLET}-rel"
)

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
3 changes: 3 additions & 0 deletions vcpkg/ports/py-qgis-requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
psycopg2==2.9.9
isort==5.13.2
autopep8==2.1.0
16 changes: 16 additions & 0 deletions vcpkg/ports/py-qgis-requirements/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "py-qgis-requirements",
"version-date": "2024-05-14",
"description": "pip installed python requirements",
"dependencies": [
{
"name": "py-setuptools",
"host": true
},
{
"name": "py-pip",
"host": true
},
"python3"
]
}
4 changes: 3 additions & 1 deletion vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"registries": [
{
"kind": "git",
"baseline": "7d2535039cd5d76570c6fa2822359c16f02a8a0b",
"baseline": "3edb3eb7092173dddb15359aa48b1599708fd96e",
"repository": "https://github.com/open-vcpkg/python-registry",
"packages": [
"python3",
Expand Down Expand Up @@ -92,6 +92,8 @@
"py-pip",
"py-pyqt6",
"py-qscintilla",
"py-pyyaml",
"py-qgis-requirements",
"python3"
]
},
Expand Down

0 comments on commit 0ff6542

Please sign in to comment.