Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.io.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.io.base
Commits
a6b105f6
Commit
a6b105f6
authored
11 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Rename externals -> version to reflect global prototype changes
parent
3ed8d368
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+2
-2
2 additions, 2 deletions
setup.py
xbob/io/__init__.py
+3
-2
3 additions, 2 deletions
xbob/io/__init__.py
xbob/io/version.cpp
+3
-3
3 additions, 3 deletions
xbob/io/version.cpp
with
8 additions
and
7 deletions
setup.py
+
2
−
2
View file @
a6b105f6
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
xbob/io/__init__.py
+
3
−
2
View file @
a6b105f6
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
...
...
This diff is collapsed.
Click to expand it.
xbob/io/
externals
.cpp
→
xbob/io/
version
.cpp
+
3
−
3
View file @
a6b105f6
...
...
@@ -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
,
"
version
s"
,
build_version_dictionary
())
<
0
)
return
0
;
if
(
PyModule_AddObject
(
m
,
"
external
s"
,
build_version_dictionary
())
<
0
)
return
0
;
/* imports xbob.blitz C-API + dependencies */
if
(
import_xbob_blitz
()
<
0
)
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment