Skip to content

Commit 4e73518

Browse files
authored
Merge pull request #149 from open-vcpkg/lxml-setup-cfg
Add macos tests for lxml
2 parents 0b0c9c5 + d05917b commit 4e73518

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.github/workflows/macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
./vcpkg/vcpkg install $VCPKG_OPTIONS py-jsonschema
9393
./vcpkg/vcpkg install $VCPKG_OPTIONS py-networkx
9494
./vcpkg/vcpkg install $VCPKG_OPTIONS py-pyproj
95+
./vcpkg/vcpkg install $VCPKG_OPTIONS py-lxml
9596
9697
# ./vcpkg/vcpkg install $VCPKG_OPTIONS py-pyqt6
9798

ports/py-lxml/portfile.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ vcpkg_from_pythonhosted(
55
SHA512 2aaa37a4504cd23d2022cbe7c2d99173aa0e3d6ec82a95e2429369ef3ef787db185440b8581db975cb81287c3ab533dd2e7cb447cefe0d7e628082f51c5b5254
66
)
77

8-
file(WRITE "${SOURCE_PATH}/setup.cfg" "
8+
if(VCPKG_TARGET_IS_WINDOWS)
9+
file(WRITE "${SOURCE_PATH}/setup.cfg" "
910
[build_ext]
1011
include_dirs=${CURRENT_INSTALLED_DIR}/include;${CURRENT_INSTALLED_DIR}/include/libxml2
1112
library_dirs=${CURRENT_INSTALLED_DIR}/lib
1213
libraries=libxml2
1314
")
15+
endif()
1416

1517
vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}")
1618

ports/py-lxml/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "py-lxml",
33
"version": "6.0.2",
4-
"port-version": 1,
4+
"port-version": 2,
55
"description": "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.",
66
"homepage": "https://lxml.de/",
77
"dependencies": [

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
},
155155
"py-lxml": {
156156
"baseline": "6.0.2",
157-
"port-version": 1
157+
"port-version": 2
158158
},
159159
"py-markupsafe": {
160160
"baseline": "3.0.3",

versions/p-/py-lxml.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "b202e462059242a561c800ef7a8b48ede970930d",
5+
"version": "6.0.2",
6+
"port-version": 2
7+
},
38
{
49
"git-tree": "8b6645887d712e767a994bb28bb51912bfa9d9b0",
510
"version": "6.0.2",

0 commit comments

Comments
 (0)