Stefan Seefeld
ebba009a9f
First attempt at faber-based build system.
2017-11-10 07:41:21 -05:00
Stefan Seefeld
9ad3313d1f
Fix deprecated elementwise comparison warning / error.
2017-11-07 19:43:16 -05:00
Stefan Seefeld
bf9a03399b
Revert "Avoid multiple template instances of boost::python::details::get_signature when multiple calling conventions are enabled"
...
This reverts commit b49a186b6f .
2017-10-30 08:04:01 -04:00
Stefan Seefeld
2d9871fc5a
Fix unresolved symbol error with MSVC.
2017-10-27 13:58:56 -04:00
Gary Furnish
30c9eb1fb6
Fix c++11 detection.
2017-10-25 08:07:17 -04:00
Gary Furnish
7c5e478432
Fix autoptr/unique_ptr ifdef for VS2017.
2017-10-25 08:07:17 -04:00
Krzysztof Trzciński
2b7842a39f
Fix memory leaks in enum.cpp
...
Unfortunately due to optimised build of Python3 libraries and executable I got only partial stack from [http://clang.llvm.org/docs/AddressSanitizer.html ], however digging into and reducing my code I tracked it down to be issue with `boost/libs/python/src/object/enum.cpp`.
It has to bits that leak (and comment mentioning there is one):
PyObject *mod = PyObject_GetAttrString( self_, "__module__");
Leaks reference, as it never decreases it.
It also stores a new string object under object's `name` that ref count never gets decremented.
That commit fixes both issues.
2017-10-25 08:04:35 -04:00
Raffi Enficiaud
8d37630cc8
Fix warning: returning the proper type for object sizes
2017-10-25 08:03:18 -04:00
Marvin Schmidt
9d2903cd5e
Fix symbol visibility of init method
...
This was properly an oversight when switching to the BOOST_SYMBOL_*
symbols from Boost.Config in commit 0224f54a (see #1 )
Since Boost.Config is already doing the differentiation between
different platforms and compilers we can simplify this bit and just
use BOOST_SYMBOL_EXPORT
2017-10-24 20:18:59 -04:00
Frank Richter
b09d80a93e
Fix exec(), eval() not passing through arguments
2017-10-18 07:37:03 -04:00
Mark Borgerding
135c025484
fixed nuisance warning when calling from_data(...,bob) with an ndarray bob, "FutureWarning: comparison to None will result in an elementwise object comparison in the future."
2017-09-25 09:08:38 -04:00
Mark Borgerding
ecf05c4a90
ndarray.shape(k),strides(k) act more like their python counterparts (negative indexing, bounds checking) (issue #157 )
2017-09-25 09:08:14 -04:00
Edward Diener
00b7ed03a7
Remove executable attribute for files.
2017-09-18 08:21:30 -04:00
Stefan Seefeld
c2424bcc8f
Fix version number.
2017-08-13 20:45:13 -04:00
Stefan Seefeld
b3b67273b0
Fix traits qualification.
2017-08-13 20:44:52 -04:00
Stefan Seefeld
31c8b7f1b4
Remove 'numeric' documentation.
2017-07-31 11:37:52 -04:00
Stefan Seefeld
2d1f66fd19
Remove module as obsoleted by Boost.NumPy.
2017-07-20 11:39:58 -04:00
Stefan Seefeld
69e38d2186
Fix documentation.
2017-07-20 10:11:19 -04:00
Stefan Seefeld
8536e97c67
Use utf-8 encoding
2017-06-25 14:33:42 -04:00
shreyans800755
142661dac8
Use std type_traits instead of boost type_traits
...
Fixes https://github.com/boostorg/python/issues/106
2017-06-25 14:17:41 -04:00
John Kirkham
d6554d6c65
Handle BOOST_LIB_NAME for NumPy on Python 2/3
...
This was reusing the Python 2 name on Python 3, which is incorrect since
the Python 3 library for Boost.NumPy has a `3` in it. Hence this checks
against the Python version and defines this correctly.
2017-06-12 09:32:31 -04:00
John Kirkham
90829714cc
Fix BOOST_LIB_NAME for Python 3
...
This was reusing the Python 2 name on Python 3, which is incorrect since
the Python 3 library for Boost.Python now has a `3` in it. Hence this
checks against the Python version and defines this correctly.
2017-06-12 09:32:31 -04:00
Stefan Seefeld
664d443df3
Fix Python3 compatibility bug.
2017-06-03 18:26:14 -04:00
Stefan Seefeld
c4fe369d69
Require NumPy 1.7 API.
2017-06-02 19:31:54 -04:00
Stefan Seefeld
7cfc47008e
Rename test source
2017-06-02 19:31:54 -04:00
Raphael Isemann
1452dfe713
Reencoded a few headers that used Windows-1252 with UTF-8.
...
Nearly every header in the boost codebase is UTF-8, but here there
are a few headers which are using Windows-1252, which makes it impossible
for some tools to parse those files. This patch just reencodes them
with UTF-8 like the rest of the codebase. I checked that the name of the
author is still correct after this change.
No functional change intended.
2017-06-02 17:44:46 -04:00
Saliya
3613142839
Fixing compiling error 'error: ‘NPY_FLOAT16’ was not declared in this scope'
...
Signed-off-by: Saliya <hamparawa@gmail.com >
2017-06-02 15:35:04 -04:00
John Zwinck
b2f53e1acf
exec/eval(): add overloads for char const*
...
Many times the caller may have a string created in C++,
so there is no need to wrap it in a Python object when
the only thing done with the object is extract<char*>.
2017-05-04 19:29:56 -04:00
Stefan Seefeld
3844c4fc5f
Fix more missing symbols.
2017-04-14 13:14:05 -04:00
Stefan Seefeld
df16e3e55e
Fix typo.
2017-03-28 12:54:05 -04:00
Stefan Seefeld
3066c73c09
Fix Windows builds.
2017-03-24 15:39:13 -04:00
Stefan Seefeld
edd890bd2b
More dllexport fixes
2017-03-24 15:39:13 -04:00
Stefan Seefeld
352792c90a
Add more export symbols.
2017-03-16 20:14:39 -04:00
Stefan Seefeld
47faef65ee
Fix documentation links.
2017-03-16 11:35:26 -04:00
Rene Rivera
5121fc11f9
Don't build numpy if there's no python version to target.
2017-03-06 10:30:41 -06:00
Rene Rivera
471e6181b2
BPL builds targets need to always be defined.
2017-03-05 15:16:36 -06:00
Rene Rivera
398e7f02b8
Fix no pynumpy target when no numpy configured.
2017-03-05 08:56:57 -06:00
Rene Rivera
1e315242ce
Fix libs from referencing BPL when there is no python configured.
2017-03-03 22:28:22 -06:00
al3xst
77ee91d5c5
Updated python library reference url
...
Due to changes on the python website, the url to the pickle library reference page was invalid.
2017-03-03 18:29:05 -05:00
Rene Rivera
e670de2795
Fix empty numpy lib name caused by missing parens for lib name map.
2017-03-02 21:55:49 -06:00
Rene Rivera
367b793ac9
Merge branch 'develop' of https://github.com/boostorg/python.git into develop
2017-03-01 10:15:47 -06:00
Rene Rivera
8c170d9193
Fix building of multiple BPL libs even when the configured python does
...
not match.
2017-03-01 10:15:37 -06:00
SPKorhonen
bd7b8ecba5
Fix for missing export symbols, issue #98 ( #110 )
...
Fix for missing export symbols in shared library of boost::python::numpy
2017-02-15 11:53:28 -05:00
Jürgen Hunold
0224f54ae0
Switch^Cisibility support to BOOST_SYMBOL_EXPORT. Refs #2114
2017-02-13 10:43:23 -05:00
Stefan Seefeld
d14b8cf411
Fix library dependency with Python 3.
2017-01-03 21:17:51 -05:00
Tadeu Manoel
4e0b96faa8
Fix conversion of PyUnicodeObject to wstring ( #93 )
2016-12-14 07:58:07 -05:00
Tadeu Manoel
7178a70176
Fix a problem where test_builtin_converters.py is not being run ( #94 )
...
This was happening because the module docstring was not the first statement.
2016-12-14 07:54:37 -05:00
Vladimir Prus
36bbdde2fe
Use Boost-global python tagging.
2016-10-28 11:56:15 +03:00
Stefan Seefeld
1df6d84b80
Fix Python 3 incompatibility.
2016-10-27 08:37:25 -04:00
Stefan Seefeld
e968329174
Clean up examples.
2016-10-23 21:34:16 -04:00