microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.06k stars 6.36k forks source link

[boost-python] Feature to install pip/numpy for vcpkg installed python installation #34565

Open SPKorhonen opened 1 year ago

SPKorhonen commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently boost-python build process pulls the numpy required to build boost-python the wrappers for numpy from external python installation which could incompatibilities.

Proposed solution

One could add a feature "numpy" to boost-python which would use the vcpkg installed python to install pip via ensurepip and subsequently to install numpy via pip which can then be used to build boost-python.

By default we could install either latest version of numpy or a specific hard-coded version. There could also be an environmental variable like VCPKG_NUMPY_VERSION which can be used to specify the desired version.

I have implemented this in a fork of vcpkg and could submit a PR.

Describe alternatives you've considered

The current work-around is to keep a compatible version of python and numpy so that the jam build system finds the required numpy installation from external source outside of vcpkg.

Additional context

No response

Neumann-A commented 1 year ago

I have an overlay for numpy: https://github.com/Neumann-A/my-vcpkg-ports/tree/master/numpy but you also need an overlay for boost pulling in it.

github-actions[bot] commented 6 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 1 week ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.