github-actions[bot] on gh-pages
deploy: a218babc8daee904a83f550… (compare)
stefanseefeld on develop
Fix enum_type_object type on Py… (compare)
github-actions[bot] on gh-pages
deploy: 8dd151177374dbf0aa5cb86… (compare)
mclow on boost-1.79.0
vswhere
tool available, but faber
then can't find it, so the build fails: https://github.com/boostorg/python/pull/342/checks?check_run_id=1612000557
vswhere
is bundled with MSVC nowadays.
vswhere
be found ?
vswhere
. Otherwise you could set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\
vswhere
to the system path.
%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\
in cmd.exe ?
The shell variable %ProgramFiles(x86)%
points to C:\Program Files (x86)
on almost all computers, I'm guessing a very small percentage have a non C: drive as their default.
From my understanding VS 2017 (15.2+) and VS 2019 will always install vswhere
to %ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe
.
cl /nologo /showIncludes /EP ...
, then I scan the output (stderr !) for "Note: including file: ". I just realized that this only works for English locales. Do you know of a way (under Windows) to set the locale just for a specific subprocess (such as cl ...
) ?
shared_ptr
(either std::
or boost::
) as HeldType ? Wouldn't that solve the issue, as in that case the type would always be allocated on the heap on a correctly aligned memory boundary, rather than being forced into a specific location in the pre-allocated PyObject ?
shared_ptr
held type idea you mentioned has worked for fixing some alignment-related crashes in the past. However, as in the original issue, the error also seems to occur in bound member functions that return Eigen::Matrix
types, which are converted to numpy arrays via custom converters. The key part of the conversion to python is the call to numpy::from_data, followed by a copy(). I'm wondering if the issue is there, I need to look into it.
alignas()
attribute to its types directly ?
Boost.Python
's use of placement operator new as being problematic, as that overrides a type's alignment requirements, so that's one of the things I'm looking into fixing now.
boost-python-test-docker
docker image, which installs boost prerequisite libs via bcp python
. As it happens, my PR adds another prerequisite (boost.align), and thus the build fails as that isn't installed. I'm not sure what the best is to solve this. Would it make sense to modify those docker images to install all of boost (and perhaps remove boost.python, to avoid potential conflicts), rather than only what the old boost.python
would depend on ?