Skip to content

Commit

Permalink
Add more python deps
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 30, 2024
1 parent 67e58ae commit 6e24900
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 10 additions & 3 deletions vcpkg/ports/py-qgis-requirements/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
set(BUILD_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")

file(MAKE_DIRECTORY ${BUILD_DIR})
file(MAKE_DIRECTORY "${BUILD_DIR}")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}")

if(VCPKG_TARGET_IS_WINDOWS)
set(PYTHON_EXECUTABLE "${CURRENT_INSTALLED_DIR}/tools/python3/python${VCPKG_HOST_EXECUTABLE_SUFFIX}")
else()
set(PYTHON_EXECUTABLE "${CURRENT_INSTALLED_DIR}/tools/python3/python${PYTHON3_VERSION_MAJOR}.${PYTHON3_VERSION_MINOR}")
endif()

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}"
COMMAND "${PYTHON_EXECUTABLE}" "-m" "pip" "install" "-r" "${CURRENT_PORT_DIR}/requirements.txt" "--target" "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}" "--no-deps"
WORKING_DIRECTORY "${BUILD_DIR}"
LOGNAME "requirements-install-${TARGET_TRIPLET}-rel"
)

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
8 changes: 7 additions & 1 deletion vcpkg/ports/py-qgis-requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
psycopg2==2.9.9
isort==5.13.2
autopep8==2.1.0
jinja2==3.1.4
OWSLib==0.31.0
lxml==5.2.2
python-dateutil==2.9.0.post0
six==1.16.0
pytz==2024.1
requests==2.32.3

0 comments on commit 6e24900

Please sign in to comment.