Skip to content

Commit b17fd50

Browse files
committed
Merge branch 'dev/feature/meson-build' of https://github.com/hz-b/bact-archiver into dev/feature/meson-build
2 parents a8cdd4c + 5fac491 commit b17fd50

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

bact_archiver/carchiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
from .epics_event import read_chunk, decode
8-
from . import epics_event_pb2 as proto
8+
import bact_archiver_epics_event_pb2 as proto
99
from .protocol_buffer import (Chunk, dtypes as _dtypes, decoder as _decoder,
1010
dbrtypes as _dbrtypes, dsize as _dsize)
1111
from .archiver import ArchiverBasis, convert_datetime_to_timestamp

bact_archiver/meson.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ py_sources = run_command('/bin/sh',
55

66
py.install_sources(
77
py_sources,
8-
<<<<<<< HEAD
9-
# 'epics_event_pb2.py',
10-
=======
11-
'epics_event_pb2.py',
12-
>>>>>>> cc30f5d ([FIX] included created python file)
138
'archiver.cfg',
149
pure: false,
1510
subdir: 'bact_archiver'

bact_archiver/proto/meson.build

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,35 @@ cpp_gen = generator(protoc,
66
77
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@BUILD_DIR@', '@INPUT@']
88
)
9+
cpp_generated = cpp_gen.process('epics_event.proto')
10+
# does not fully work ..
11+
# how do I install it
912
py_gen = generator(protoc,
1013
output : ['@BASENAME@_pb2.py'],
1114
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--python_out=@BUILD_DIR@', '@INPUT@']
1215
)
13-
cpp_generated = cpp_gen.process('epics_event.proto')
1416
py_generated = py_gen.process('epics_event.proto')
1517

16-
# cython extension
17-
incdir_numpy = run_command(py,
18-
['-c', 'import os; os.chdir(".."); import numpy; print(numpy.get_include())'],
19-
check : true
20-
).stdout().strip()
21-
inc_dir = include_directories(incdir_numpy)
22-
2318
py_gen2 = custom_target('epics_event_build_py',
2419
output: ['epics_event_pb2.py'],
2520
input: 'epics_event.proto',
2621
command: [
2722
protoc, '--proto_path=@SRCDIR@', '--python_out=@OUTDIR@', '@INPUT@'
2823
],
2924
install: true,
30-
install_dir: py.get_install_dir() / 'bact_archiver', # need to install _umfpack.py
25+
install_dir: py.get_install_dir() / 'bact_archiver', # need to instalall epics_event_pb2.py
3126
install_tag: 'python-runtime',
3227
)
3328

29+
30+
# cython extension
31+
incdir_numpy = run_command(py,
32+
['-c', 'import os; os.chdir(".."); import numpy; print(numpy.get_include())'],
33+
check : true
34+
).stdout().strip()
35+
inc_dir = include_directories(incdir_numpy)
36+
37+
3438
py.extension_module(
3539
'epics_event',
3640
'epics_event.pyx',

0 commit comments

Comments
 (0)