At current the code is set up to require additional locations to be defined when calling statmake.lib.apply_stylespace_to_variable_font, even if one does not have additional locations to define. Additionally, it looks like the _sanity_check code and _generate_builder_data also assume the presence of additional defined locations.
I went through and added if additional_locations is not None: to my copy of lib.py so now it works ok! Figure you might want to implement it a different way, so thought I'd just file a bug.
At current the code is set up to require additional locations to be defined when calling statmake.lib.apply_stylespace_to_variable_font, even if one does not have additional locations to define. Additionally, it looks like the _sanity_check code and _generate_builder_data also assume the presence of additional defined locations.
I went through and added
if additional_locations is not None:to my copy of lib.py so now it works ok! Figure you might want to implement it a different way, so thought I'd just file a bug.