diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/boost-python | |
Diffstat (limited to 'vcpkg/ports/boost-python')
| -rw-r--r-- | vcpkg/ports/boost-python/portfile.cmake | 17 | ||||
| -rw-r--r-- | vcpkg/ports/boost-python/remove_undef.diff | 28 | ||||
| -rw-r--r-- | vcpkg/ports/boost-python/vcpkg.json | 104 |
3 files changed, 149 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-python/portfile.cmake b/vcpkg/ports/boost-python/portfile.cmake new file mode 100644 index 0000000..faa60dd --- /dev/null +++ b/vcpkg/ports/boost-python/portfile.cmake @@ -0,0 +1,17 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/python + REF boost-${VERSION} + SHA512 04bfa929106ce060ccb389a7234a0d212b1bdcd9bc9974f9c3efa4fdab2fb88b6787b18b9f2293c5e258a9cfa1bcc531a3608548d0cd8b52fbf2893a6ebddd98 + HEAD_REF master + PATCHES + remove_undef.diff +) + +set(FEATURE_OPTIONS "") +boost_configure_and_install( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} +) diff --git a/vcpkg/ports/boost-python/remove_undef.diff b/vcpkg/ports/boost-python/remove_undef.diff new file mode 100644 index 0000000..65e6b4e --- /dev/null +++ b/vcpkg/ports/boost-python/remove_undef.diff @@ -0,0 +1,28 @@ +diff --git a/fabscript b/fabscript +index 8188779fd..6a136d82a 100644 +--- a/fabscript ++++ b/fabscript +@@ -28,7 +28,7 @@ class has_numpy(try_run): + src = r""" + // If defined, enforces linking against PythonXXd.lib, which + // is usually not included in Python environments. +-#undef _DEBUG ++ + #include "Python.h" + #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION + #include "numpy/arrayobject.h" +diff --git a/include/boost/detail/wrap_python.hpp b/include/boost/detail/wrap_python.hpp +index 037e4bf2e..a690913f2 100644 +--- a/include/boost/python/detail/wrap_python.hpp ++++ b/include/boost/python/detail/wrap_python.hpp +@@ -42,8 +42,8 @@ + # include <math.h> + # include <time.h> + # endif +-# undef _DEBUG // Don't let Python force the debug library just because we're debugging. +-# define DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H ++//# undef _DEBUG // Don't let Python force the debug library just because we're debugging. ++//# define DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H + # endif + #endif + diff --git a/vcpkg/ports/boost-python/vcpkg.json b/vcpkg/ports/boost-python/vcpkg.json new file mode 100644 index 0000000..ca25209 --- /dev/null +++ b/vcpkg/ports/boost-python/vcpkg.json @@ -0,0 +1,104 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-python", + "version": "1.89.0", + "description": "Boost python module", + "homepage": "https://www.boost.org/libs/python", + "license": "BSL-1.0", + "supports": "!uwp & !emscripten & !ios & !android", + "dependencies": [ + { + "name": "boost-align", + "version>=": "1.89.0" + }, + { + "name": "boost-bind", + "version>=": "1.89.0" + }, + { + "name": "boost-cmake", + "version>=": "1.89.0" + }, + { + "name": "boost-config", + "version>=": "1.89.0" + }, + { + "name": "boost-conversion", + "version>=": "1.89.0" + }, + { + "name": "boost-core", + "version>=": "1.89.0" + }, + { + "name": "boost-detail", + "version>=": "1.89.0" + }, + { + "name": "boost-foreach", + "version>=": "1.89.0" + }, + { + "name": "boost-function", + "version>=": "1.89.0" + }, + { + "name": "boost-graph", + "version>=": "1.89.0" + }, + { + "name": "boost-headers", + "version>=": "1.89.0" + }, + { + "name": "boost-integer", + "version>=": "1.89.0" + }, + { + "name": "boost-iterator", + "version>=": "1.89.0" + }, + { + "name": "boost-lexical-cast", + "version>=": "1.89.0" + }, + { + "name": "boost-mpl", + "version>=": "1.89.0" + }, + { + "name": "boost-numeric-conversion", + "version>=": "1.89.0" + }, + { + "name": "boost-preprocessor", + "version>=": "1.89.0" + }, + { + "name": "boost-property-map", + "version>=": "1.89.0" + }, + { + "name": "boost-smart-ptr", + "version>=": "1.89.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-tuple", + "version>=": "1.89.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.89.0" + }, + { + "name": "boost-utility", + "version>=": "1.89.0" + }, + "python3" + ] +} |