Hi,
I try to freeze some modules. Some of them live in /dist-packages. During the build I get a lot of error messages like:
build-GENERIC/frozen_content.c:5764:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
STATIC const mp_rom_obj_t const_table_data_dist-packages_shutil__lt_module_gt__rmtree[1] = {
^
The '^' is pointing at the '-'
If I rename the path to /distpackages it works. So the '-' is the source of the faults and that is intended to be like this?
Just asking for confirmation.
Thanks.
'-' in frozen module path not allowed
Re: '-' in frozen module path not allowed
Nevermind - my fault. Problem was that /dist-packages is not a module.
Re: '-' in frozen module path not allowed
Yep. This could be handled better by the freezing process (it should escape special characters when generating the identifier names), but in this case pretty much anyhting that isn't valid as a C identifier (including "-") is also not valid in a module/package name in Python.