-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from open-vcpkg/psycopg2
[py-psycopg2] New port
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
vcpkg_from_pythonhosted( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
PACKAGE_NAME psycopg2 | ||
VERSION ${VERSION} | ||
SHA512 a691fd09762221e854861dedce37b05e5354e0701feea470a6d5046960056ef02a8c9ecfa751adeba485271ea7d5834643b7d3a3c3f3270087f5ed9c68509f5f | ||
) | ||
|
||
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/tools/libpq/bin") | ||
|
||
vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x) | ||
|
||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") | ||
|
||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "py-psycopg2", | ||
"version": "2.9.9", | ||
"description": "Python-PostgreSQL Database Adapter", | ||
"homepage": "https://psycopg.org/", | ||
"dependencies": [ | ||
{ | ||
"name": "py-setuptools", | ||
"host": true | ||
}, | ||
"python3", | ||
"libpq", | ||
{ | ||
"name": "vcpkg-python-scripts", | ||
"host": true | ||
} | ||
] | ||
} |