Peter Dimov
209179fa09
Add CMakeLists.txt
2021-06-04 03:10:21 +03:00
Stefan Seefeld
5e77eabb63
Revert previous commit until 'Boost.Build' is ready.
2021-05-26 07:46:42 -04:00
Peter Dimov
ecda18f01e
Use the /python//numpy target instead of [ numpy.include ] ( fixes #361 )
2021-05-24 18:54:56 -04:00
Stefan Seefeld
2a82afdf6d
Upgrade base image & build prerequisites.
2021-04-30 22:59:25 -04:00
Stefan Seefeld
aca3c80c4f
Respect alignment of by-value storage.
2021-04-30 22:59:25 -04:00
Dmitry Bely
f5d14ef15e
Fix issue #280
2021-02-07 23:07:30 -05:00
Dmitry Bely
f7254f5d8a
Add a test case for issue #280
2021-02-07 23:07:30 -05:00
Edward Diener
bffcb99ae7
[skip ci] Add "cxxstd" json field. The "cxxstd" json field is being added to each Boost library's meta json information for libraries in order to specify the minumum C++ standard compilation level. The value of this field matches one of the values for 'cxxstd' in Boost.Build. The purpose of doing this is to provide information for the Boost website documentation for each library which will specify the minimum C++ standard compilation that an end-user must employ in order to use the particular library. This will aid end-users who want to know if they can successfully use a Boost library based on their C++ compiler's compilation level, without having to search the library's documentation to find this out.
2021-01-21 07:25:16 -05:00
Victor Stinner
cbd2d9f033
Fix compatibility with Python 3.10.0a4: fopen
...
Replace private _Py_fopen() with public fopen(): private _Py_fopen()
function was removed in 3.10.0a4:
https://bugs.python.org/issue32381
2021-01-06 07:55:48 -05:00
Cedric Schmeits
0f1945060f
noncopyable is located in the boost namespace
2021-01-04 01:35:25 -05:00
Cedric Schmeits
30dd3fe8b1
added includes for call_method.hpp and def.hpp
2021-01-04 01:35:25 -05:00
Stefan Seefeld
500194edb7
Fix Python 3.10 (PEP-620) incompatibility.
2021-01-04 01:31:40 -05:00
Stefan Seefeld
cd953cff06
Replace appveyor by github actions.
2021-01-04 00:21:07 -05:00
Stefan Seefeld
5e4f6278e0
Remove travis-ci logic.
2020-12-26 14:53:19 -05:00
Stefan Seefeld
108c93f7c3
Deploy documentation via github actions.
2020-12-26 14:53:19 -05:00
Stefan Seefeld
3dd6bcf39f
Add OSX tests.
2020-12-26 14:53:19 -05:00
Tom Kent
97a8550a9f
Using docker images to execut the github actions for testing ( #335 )
...
Introduce github action-based test workflow for Ubuntu.
2020-12-22 16:56:09 -05:00
Thomas Kent
c9521a8ef5
Updated VS2019 to 16.8.3
2020-12-22 16:53:56 -05:00
Thomas Kent
8328a4f535
New VS2019 version on appveyor
2020-12-13 14:14:29 -05:00
Pat Riehecky
f1320bf30b
Add pypy3 to TravisCI matrix
2020-10-16 12:35:44 -04:00
Pat Riehecky
d9f06052e2
Convert Python 3.1+ to use public C API for filenames
2020-10-16 12:35:44 -04:00
Pat Riehecky
9ad5298d0b
Use python macros to stay on public API for new pythons
2020-10-16 12:35:44 -04:00
Pat Riehecky
944fa075b3
Stop using deprecated API calls (python-3.9) #319
2020-10-15 21:54:47 -04:00
Stefan Seefeld
b4fbf1840b
Fix appveyor builds.
2020-10-15 12:45:35 -04:00
David Seifert
60405cc48c
Remove Boost.Python-specific python-tag code
2020-08-08 02:32:07 -04:00
Austin Maliszewski
9e1132f4f5
Handle NULL from call to PyLong_Type
...
PyLong_Type raises an exception if the argument is not convertible to
long, therefore, this has to be handled as new_reference and not
new_non_null_reference, otherwise a segfault will occur.
2020-08-08 02:30:46 -04:00
Tyler Kieft
bf824c1b98
Ensure all doctests run
2020-08-08 02:19:03 -04:00
Andrey Semashev
01ab510585
Removed usage of deprecated header boost/detail/iterator.hpp.
...
The header is deprecated in favor of <iterator>. It generates compiler
warnings and will be removed in a future release.
2020-08-07 18:09:31 -04:00
Edward Diener
5e2d55d801
Revert back to original, as __cdecl is fine with the Embarcadero C++ clang-based compilers.
2020-08-07 17:35:12 -04:00
Edward Diener
17886fc296
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-08-07 17:35:12 -04:00
Stefan Seefeld
15115eb1f8
Fix appveyor build failures.
2020-08-07 14:04:30 -04:00
Julien Schueller
1727b67a5a
detail/caller.hpp:127:2: error: extra ';' [-Wpedantic]
2019-06-01 19:07:40 -04:00
Peter Dimov
0a9b687e9e
Merge pull request #264 from boostorg/pr/fix-numpy-install
...
Only boost-install boost_numpy when it's being built
2019-04-17 15:08:15 -07:00
Peter Dimov
8c8b0dc215
Only boost-install boost_numpy when it's being built
2019-04-18 00:02:52 +03:00
Nikita Kniazev
fdc9ec760f
Fixed module tests fail
...
Since recently lightweight_test introduced a sanitation to ensure that
`boost::report_errors()` is called, and it does not in module tests.
The problem could be fixed by exporting the function and calling it from
these python tests, but as it already done in other module tests I just
turned those usages lightweight_test to a regular assertation.
2019-03-31 20:36:56 -04:00
Nikita Kniazev
0b0c0536d6
The right hypot fix for MinGW
2019-03-26 15:56:03 -04:00
Owens
0d0cd711a7
Enable forward declaration of unwind_type() in msvc14.15 and later.
...
Name lookup in msvc has changed between 14.14 and 14.15 making it consistent with other compilers. Forward declaration of unwind_type() is now required as it is for other compilers.
Resolves compilation errors identified in:
https://github.com/boostorg/python/issues/228
2019-03-25 11:00:48 -04:00
Jonathan Wakely
72e254bf8b
Fix name of file in tutorial
...
I think it's meant to refer to the Jamroot file being discussed, not Jamrules.
2019-03-23 20:38:29 -04:00
Nikita Kniazev
1f1b9b6aef
Fix hypot issue on MinGW
2019-03-23 20:37:35 -04:00
Nikita Kniazev
6bd6d71850
Fix -Wregister error on Clang in C++17 mode
...
Suppresses the warning on GCC, Clang, and MSVC.
2019-03-21 16:40:41 -04:00
Tom Kent
4b01139720
Ssize t warning - trac #3353 ( #21 )
...
Fixes msvc unsafe type conversion warning - trac num: 3353
2019-03-03 22:02:57 -05:00
SPKorhonen
65bfec2d97
Fix static object initialization under Visual Studio 2017 ( #208 )
...
Fix static object initialization under VS 15.7.2
2019-03-03 21:59:48 -05:00
Orivej Desh
4f6d547c0a
clear python exception after expected attribute lookup failure
...
Python 3.7.0 asserts that attribute lookup functions are called without outstanding exceptions:
https://github.com/python/cpython/blob/v3.7.0a2/Objects/typeobject.c#L3037
Motivation: https://bugs.python.org/issue34068#msg321262
Therefore the error set by the first PyObject_GetItem should be cleared before calling PyObject_GetAttrString.
2019-02-13 23:38:02 -05:00
Peter Dimov
b644946368
Add comments explaining the stage/install targets in build/Jamfile
2018-10-12 14:34:15 -04:00
Peter Dimov
c7799aa44f
Add empty stage/install targets when Python is not configured
2018-10-12 14:34:15 -04:00
Peter Dimov
02095af952
Use boost-install in build/Jamfile
2018-10-12 09:42:51 -04:00
Moritz Wanzenböck
ed4776b59c
Add missing return statement in numpy import
...
This adds a missing return statement in the python3 specific
import logic of boost.python.numpy.
For python3 wrap_import_array() needs to return a pointer value.
The import_array() macro only returns NULL in case of error. The
missing return statement is UB, so the compiler can assume it does
not happen. This means the compiler can assume the error branch
is always taken, so import_array must always fail.
2018-07-11 16:40:19 -04:00
Markus Gerstel
ac62db1cf1
Drop injector code example from tutorials.
...
This example depends on the behaviour of ```__metaclass__```. This has
changed in python 3, and the example no longer works. Removing example
code as suggested, see #210 for more details and possible alternatives.
Closes #210 .
2018-06-08 14:59:41 -04:00
Stefan Seefeld
b4230e98f6
Fix auto-linking logic for boost_numpy (Windows only).
2018-06-04 09:34:00 -04:00
Stefan Seefeld
467a89eba7
Fix issue 198.
2018-05-06 13:35:16 -04:00