Skip to content
Snippets Groups Projects
Commit a6b105f6 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Rename externals -> version to reflect global prototype changes

parent 3ed8d368
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@ setup(
],
ext_modules = [
Extension("xbob.io._externals",
Extension("xbob.io.version",
[
"xbob/io/externals.cpp",
"xbob/io/version.cpp",
],
packages = packages,
include_dirs = include_dirs,
......
from ._library import File, VideoReader, VideoWriter, HDF5File
from ._library import __version__, __api_version__
from . import _externals
from . import version
from .version import module as __version__
from .version import api as __api_version__
import os
......
......@@ -867,11 +867,11 @@ static PyObject* create_module (void) {
auto m_ = make_safe(m); ///< protects against early returns
/* register version numbers and constants */
if (PyModule_AddIntConstant(m, "__api_version__", XBOB_IO_API_VERSION) < 0)
if (PyModule_AddIntConstant(m, "api", XBOB_IO_API_VERSION) < 0)
return 0;
if (PyModule_AddStringConstant(m, "__version__", XBOB_EXT_MODULE_VERSION) < 0)
if (PyModule_AddStringConstant(m, "module", XBOB_EXT_MODULE_VERSION) < 0)
return 0;
if (PyModule_AddObject(m, "versions", build_version_dictionary()) < 0) return 0;
if (PyModule_AddObject(m, "externals", build_version_dictionary()) < 0) return 0;
/* imports xbob.blitz C-API + dependencies */
if (import_xbob_blitz() < 0) return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment