Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shakfu committed Oct 11, 2024
1 parent adf2b89 commit 590233a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

- Added support for Python 3.13.x


## [0.2.6]

- Changed default configuration in order to speed up builds. Now optimizations options ["enable_optimizations", "with_lto"] are not enabled by default but can now be enabled by setting OPTIMIZE=1 environment variable.

- Added `make strip` option (with script) to recursively strip externals in the externals folder (currently macOS only)
Expand All @@ -44,8 +47,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

- Fixed .github workflows which have become deprecated due to api changes at github

## [0.2.0]

- Added the `webserv` external based on the [mongoose](https://github.com/cesanta/mongoose) embedded webserver platform for a proof-of-concept of a webserver in an external.

- Changed minimal macos version to '12.0'. This can be set in `py-js/source/scripts/common.cmake`
Expand Down
8 changes: 6 additions & 2 deletions source/projects/py/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# CHANGELOG for `py` object


## [0.2.x]
## [0.3.x]

- Add `make install-numpy` for automatically building and adding a shrunk version of numpy to the previously built external or package

## [0.3.0]

- Added support for Python 3.13.x

- Added `make install-numpy` for automatically building and adding a shrunk version of numpy to the previously built external or package

## [0.2.6]

Expand Down
23 changes: 12 additions & 11 deletions source/projects/py/py.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,10 @@ void py_init(t_py* x)
wchar_t* python_home = NULL;

if (!Py_IsInitialized()) {
// without the above test, add more than on instance of py will cause a crash
// without the above test, addding more than one instance of `py` will
// cause a crash.
// https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/issues/18

/* Add the cythonized 'api' built-in module, before Py_Initialize */
if (PyImport_AppendInittab("api", PyInit_api) == -1) {
py_error(x, "could not add api module to builtin modules table");
Expand Down Expand Up @@ -2095,18 +2096,18 @@ t_max_err py_call(t_py* x, t_symbol* s, long argc, t_atom* argv)
* @brief Scan object registry and populate object IDs.
*
* @param x object instance
*
* PI_WANTBOX means pass iterator function to box, rather than
*
* PI_WANTBOX flag means pass iterator function to box, rather than
* the object contained in the box.
*
* PI_DEEP flag means that the iteration will descend, depth
*
* PI_DEEP flag means that the iteration will descend, depth
* first, into subpatchers.
*
* The result parameter is returns the last value returned by the iterator.
*
*
* The result parameter is returns the last value returned by the iterator.
*
* For example, if the iterator terminates early by returning a non-zero
* value, it will contain that value.
*
* value, it will contain that value.
*
* If the iterator function does not terminate early, result will be 0.
*/
void py_scan(t_py* x)
Expand Down

0 comments on commit 590233a

Please sign in to comment.