mirror of
https://github.com/httpie/cli.git
synced 2024-12-01 12:13:28 +01:00
dd2c9513f3
* Single binary executables / DEB packages. * Attach single binary executables to the releases
15 lines
377 B
Python
15 lines
377 B
Python
from pathlib import Path
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
def hook(hook_api):
|
|
for pkg in [
|
|
'pip',
|
|
'setuptools',
|
|
'distutils',
|
|
'pkg_resources'
|
|
]:
|
|
datas, binaries, hiddenimports = collect_all(pkg)
|
|
hook_api.add_datas(datas)
|
|
hook_api.add_binaries(binaries)
|
|
hook_api.add_imports(*hiddenimports)
|