Pyinstaller on a setuptools package

前端 未结 5 1764
既然无缘
既然无缘 2021-01-11 09:33

I\'m attempting to run PyInstaller on a CLI app I am building in Python using the Click library. I\'m having trouble building the project using PyInstaller. PyInstaller has

5条回答
  •  独厮守ぢ
    2021-01-11 10:33

    The accepted answer didn't work for me. I had to add the egg-info directory via the .spec file.

    My call to the Entrypoint function looks like this:

    a = Entrypoint(
            'PrintIt',
            'console_scripts',
            'printit',
            datas=[('plugins/*.egg', 'plugins/'),
                   ('../PrintIt.egg-info/*', 'PrintIt.egg-info/')])
    

提交回复
热议问题