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
2ecdf90a
Commit
2ecdf90a
authored
11 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
First importable version of module
parent
563d39b8
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
+2
-0
2 additions, 0 deletions
xbob/io/__init__.py
xbob/io/main.cpp
+44
-0
44 additions, 0 deletions
xbob/io/main.cpp
with
48 additions
and
2 deletions
setup.py
+
2
−
2
View file @
2ecdf90a
...
@@ -68,7 +68,7 @@ include_dirs = [package_dir]
...
@@ -68,7 +68,7 @@ include_dirs = [package_dir]
# Define package version
# Define package version
version
=
'
2.0.0a0
'
version
=
'
2.0.0a0
'
define_macros
+=
[
define_macros
+=
[
(
"
XBOB_
CORE
_VERSION
"
,
version
),
(
"
XBOB_
IO
_VERSION
"
,
version
),
]
]
setup
(
setup
(
...
@@ -98,7 +98,7 @@ setup(
...
@@ -98,7 +98,7 @@ setup(
ext_modules
=
[
ext_modules
=
[
Extension
(
"
xbob.io._library
"
,
Extension
(
"
xbob.io._library
"
,
[
[
"
xbob/io/
file
.cpp
"
,
"
xbob/io/
main
.cpp
"
,
],
],
define_macros
=
define_macros
,
define_macros
=
define_macros
,
include_dirs
=
include_dirs
+
bob_pkg
.
include_directories
(),
include_dirs
=
include_dirs
+
bob_pkg
.
include_directories
(),
...
...
This diff is collapsed.
Click to expand it.
xbob/io/__init__.py
+
2
−
0
View file @
2ecdf90a
from
._library
import
__version__
,
__api_version__
def
get_include
():
def
get_include
():
"""
Returns the directory containing the C/C++ API include directives
"""
"""
Returns the directory containing the C/C++ API include directives
"""
...
...
This diff is collapsed.
Click to expand it.
xbob/io/main.cpp
0 → 100644
+
44
−
0
View file @
2ecdf90a
/**
* @author Andre Anjos <andre.anjos@idiap.ch>
* @date Fri 25 Oct 16:54:55 2013
*
* @brief Bindings to bob::io
*/
#define XBOB_IO_MODULE
#include
<xbob.io/config.h>
#include
<boost/preprocessor/stringize.hpp>
#define XBOB_IO_MODULE_PREFIX xbob.io
#define XBOB_IO_MODULE_NAME _library
#ifdef NO_IMPORT_ARRAY
#undef NO_IMPORT_ARRAY
#endif
#include
<blitz.array/capi.h>
static
PyMethodDef
module_methods
[]
=
{
{
0
}
/* Sentinel */
};
PyDoc_STRVAR
(
module_docstr
,
"bob::io classes and methods"
);
#define ENTRY_FUNCTION_INNER(a) init ## a
#define ENTRY_FUNCTION(a) ENTRY_FUNCTION_INNER(a)
PyMODINIT_FUNC
ENTRY_FUNCTION
(
XBOB_IO_MODULE_NAME
)
(
void
)
{
PyObject
*
m
=
Py_InitModule3
(
BOOST_PP_STRINGIZE
(
XBOB_IO_MODULE_NAME
),
module_methods
,
module_docstr
);
/* register some constants */
PyModule_AddIntConstant
(
m
,
"__api_version__"
,
XBOB_IO_API_VERSION
);
PyModule_AddStringConstant
(
m
,
"__version__"
,
BOOST_PP_STRINGIZE
(
XBOB_IO_VERSION
));
/* imports the NumPy C-API */
import_array
();
/* imports blitz.array C-API */
import_blitz_array
();
}
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