Windows basic build setup

This commit is contained in:
2023-03-03 04:21:38 +01:00
parent 9a29460712
commit 3f65e85ecf
4 changed files with 58 additions and 4 deletions

2
.gitignore vendored
View File

@@ -2,3 +2,5 @@
example example
__pycache__ __pycache__
dyn2py.egg-info dyn2py.egg-info
build
dist

View File

@@ -45,9 +45,6 @@ The script by default overwrites older files with newer files.
Do not move the source Dynamo graphs, or update won't work with them later. Do not move the source Dynamo graphs, or update won't work with them later.
``` ```
## Development ## Development
### Installation ### Installation
@@ -70,3 +67,9 @@ py -m venv .venv
py -m pip install -e . py -m pip install -e .
``` ```
Build:
```shell
pip install -e .[build]
pyinstaller dyn2py.spec
```

44
dyn2py.spec Normal file
View File

@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['dyn2py\\__main__.py'],
pathex=[],
binaries=[],
datas=[],
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='dyn2py',
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,
)

View File

@@ -13,6 +13,11 @@ classifiers = []
dependencies = ["importlib_metadata", "pathvalidate", "simplejson"] dependencies = ["importlib_metadata", "pathvalidate", "simplejson"]
[project.optional-dependencies]
build = [
"pyinstaller"
]
[project.urls] [project.urls]
homepage = "https://github.com/infeeeee/dyn2py" homepage = "https://github.com/infeeeee/dyn2py"
documentation = "https://github.com/infeeeee/dyn2py" documentation = "https://github.com/infeeeee/dyn2py"