• Kirill Smelkov's avatar
    golang: Prepare path for libgolang.dll before importing _golang · a5ce8175
    Kirill Smelkov authored
    Else it fails to import on Windows:
    
        collecting ... 05c8:err:module:import_dll Library libgolang.dll (which is needed by L"Z:\\home\\kirr\\src\\tools\\go\\pygo-win\\pygolang\\golang\\_golang.cp310-win_amd64.pyd") not found
        collected 0 items / 1 error
    
        =========================================================== ERRORS ===========================================================
        ___________________________________________ ERROR collecting golang/golang_test.py ___________________________________
        ImportError while importing test module 'Z:\home\kirr\src\tools\go\pygo-win\pygolang\golang\golang_test.py'.
        Hint: make sure your test modules/packages have valid Python names.
        Traceback:
        C:\Program Files\Python310\lib\importlib\__init__.py:126: in import_module
            return _bootstrap._gcd_import(name[level:], package, level)
        golang\__init__.py:45: in <module>
            from golang._golang import _pysys_exc_clear as _sys_exc_clear
        E   ImportError: DLL load failed while importing _golang: Модуль не найден.
    
    We need to increase required setuptools_dso version because dylink_prepare_dso
    and generation of *_dsoinfo.py modules was done after setuptools_dso 2.
    a5ce8175
setup.py 14.5 KB