forked from dwojtasik/PyHook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-added local python handle for pipeline processing -added build requirements -updated build scripts -added custom spec for PyInstaller to include standard library -changed common module versions for 32 and 64-bit version -fixed vcruntime error for 64-bit PyHook version -updated ai_test pipeline and pipeline_template -updated readme
- Loading branch information
Showing
11 changed files
with
262 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ dist/ | |
|
||
# PyInstaller | ||
*.manifest | ||
*.spec | ||
|
||
# VScode | ||
.vscode/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
from PyInstaller.utils.hooks import collect_all | ||
from stdlib_list import stdlib_list | ||
import os | ||
import sys | ||
|
||
with open('PyHook\\_version.py') as ver_file: | ||
exec(ver_file.read()) | ||
|
||
is_64_bit = os.getenv('CONDA_FORCE_32BIT', '0') == '0' | ||
name = f'PyHook-{__version__}-{"win_amd64" if is_64_bit else "win32"}' | ||
|
||
datas = [] | ||
binaries = [] | ||
hiddenimports = stdlib_list("3.9") # Update to 3.10 when possible | ||
tmp_ret = collect_all('pyinjector') | ||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] | ||
|
||
# Pack DLLs from conda environment | ||
conda_env_path = os.path.dirname(sys.executable) | ||
binaries += [(f"{conda_env_path}\\python3.dll", ".")] | ||
if is_64_bit: | ||
binaries += [(f"{conda_env_path}\\vcruntime140_1.dll", ".")] | ||
|
||
block_cipher = None | ||
|
||
a = Analysis( | ||
['PyHook\\pyhook.py'], | ||
pathex=[], | ||
binaries=binaries, | ||
datas=datas, | ||
hiddenimports=hiddenimports, | ||
hookspath=[], | ||
hooksconfig={}, | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher, | ||
noarchive=False, | ||
) | ||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) | ||
|
||
exe = EXE( | ||
pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
[], | ||
name=name, | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
runtime_tmpdir=None, | ||
console=True, | ||
disable_windowed_traceback=False, | ||
argv_emulation=False, | ||
target_arch=None, | ||
codesign_identity=None, | ||
entitlements_file=None, | ||
version='VERSION.txt', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# PyHook version | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.