Hi Folks,
This is a rather lengthy mail so apologies in advance, I really appreciate any help.
I am getting empty files after compiling my xdress.py file on the following set up
Environment
OS: ubuntu 14.04 LTS
$ xdress --version
XDress: 0.5-dev
pycparser (optional): 2.10
lxml (optional): 3.3.3
Numpy (optional): 1.9.2
Cython (optional): 0.20.1post0
xdress.py
My xdress.py file looks like the following, where I have all of my C code and associated header files in a directory 'src' in the same directory as the xdress.py file is being execute from.
package = 'runtime' # top-level python package name
packagedir = 'runtime' # location of the python package
# wrappers for non-standard types (uints, complex)
extra_types = 'xdress_extra_types'
# List of C++ standard library container template types
# to instantiate and wrap with Cython. See the type
# system documentation for more details. Note that
# vectors are wrapped as numpy arrays of the appropriate
# type. If the type has no corresponding primitive C++
# type, then a new numpy dtype is created to handle it.
# For example, this allows the wrapping of vector< vector<int> >
# as an np.array(..., dtype=xd_vector_int).
stlcontainers = [
('vector', 'str'),
('vector', 'int32'),
('vector', 'complex'),
('vector', 'float32'),
('vector', 'float64'),
('vector', ('vector', 'float64')),
('set', 'int'),
('set', 'str'),
('set', 'uint'),
('set', 'char'),
('map', 'str', 'str'),
('map', 'str', 'int'),
('map', 'int', 'str'),
('map', 'str', 'uint'),
('map', 'uint', 'str'),
('map', 'uint', 'uint'),
('map', 'str', 'float'),
('map', 'int', 'int'),
('map', 'int', 'bool'),
('map', 'int', 'char'),
('map', 'int', 'float'),
('map', 'uint', 'float'),
('map', 'int', 'complex'),
('map', 'int', ('set', 'int')),
('map', 'int', ('set', 'str')),
('map', 'int', ('set', 'uint')),
('map', 'int', ('set', 'char')),
('map', 'int', ('vector', 'str')),
('map', 'int', ('vector', 'int')),
('map', 'int', ('vector', 'uint')),
('map', 'int', ('vector', 'char')),
('map', 'int', ('vector', 'bool')),
('map', 'int', ('vector', 'float')),
('map', 'int', ('vector', ('vector', 'float64'))),
('map', 'int', ('map', 'int', 'bool')),
('map', 'int', ('map', 'int', 'char')),
('map', 'int', ('map', 'int', 'float')),
('map', 'int', ('map', 'int', ('vector', 'bool'))),
('map', 'int', ('map', 'int', ('vector', 'char'))),
('map', 'int', ('map', 'int', ('vector', 'float'))),
]
functions = [('setup_mapping', 'src/espa_geoloc.*'),
('get_geoloc_info', 'src/espa_geoloc.*'),
('main', 'src/scag.*'),
('input_file_io', 'src/scag.*'),
('output_file_io', 'src/scag.*'),
('model_types_io', 'src/scag.*'),
('next_field', 'src/scag.*'),
('next_blank', 'src/scag.*'),
('spectral_library_io', 'src/scag.*'),
('initialize_models', 'src/scag.*'),
('next_comma', 'src/scag.*'),
('mixture', 'src/scag.*'),
('scag_process_thread', 'src/scag.*'),
('fraction', 'src/scag.*'),
('fit_constraints', 'src/scag.*'),
('shade_normalization', 'src/scag.*'),
('signal_handler', 'src/scag.*')
]
Results
This results in the following, a 'runtime' directory is generated containing .pyd and .pxd counterparts with the following content
.pxd
################################################
# WARNING! #
# This file has been auto-generated by xdress. #
# Do not modify!!! #
# #
# #
# Come on, guys. I mean it! #
################################################
{'cpppxd_footer': '', 'pyx_header': '', 'pxd_header': '', 'pxd_footer': '', 'cpppxd_header': '', 'pyx_footer': ''}
.pyx
################################################
# WARNING! #
# This file has been auto-generated by xdress. #
# Do not modify!!! #
# #
# #
# Come on, guys. I mean it! #
################################################
"""
"""
cimport c_scag
{'cpppxd_footer': '', 'pyx_header': '', 'pxd_header': '', 'pxd_footer': '', 'cpppxd_header': '', 'pyx_footer': ''}
Question
Is there something wrong with the configuration of my xdress.py file? I am pretty sure that the .pxd and .pyx files should not be empty.
Thanks in advance for any help.
Best
Lewis