Skip to content

Commit c1e8d11

Browse files
WIP
1 parent 337e757 commit c1e8d11

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: windows-2022
2424
strategy:
2525
matrix:
26-
python-version: [ 3.13, 3.14 ]
26+
python-version: [ 3.14 ]
2727

2828
steps:
2929

setup.py

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import distutils.cmd
44
import os
55
import sys
6+
import shutil
7+
import glob
68

79
def get_platform():
810

@@ -29,9 +31,15 @@ def setup_package():
2931
os.chdir(src_path)
3032
sys.path.insert(0, src_path)
3133

34+
os.mkdir("pilotlight/shaders")
35+
36+
# copy shaders
37+
for file in glob.glob("../pilotlight/shaders/*.*"):
38+
shutil.move(file, "pilotlight/shaders/")
39+
3240
metadata = dict(
3341
name='pilotlight', # Required
34-
version="0.1.3", # Required
42+
version="0.1.4", # Required
3543
author="Jonathan Hoffstadt", # Optional
3644
author_email="jonathanhoffstadt@yahoo.com", # Optional
3745
description='Pilot Light', # Required
@@ -64,29 +72,25 @@ def setup_package():
6472
if get_platform() == "Windows":
6573
metadata['package_data']['pilotlight'] = [
6674
"__init__.py",
67-
"pilotlight.pyd",
68-
"pilotlight.pyi",
69-
"pl_core.py",
70-
"pl_draw_ext.py",
71-
"pl_starter_ext.py",
72-
"pl_ui_ext.py",
73-
"pl_vfs_ext.py",
74-
"pl_pak_ext.py",
75-
"pl_shader_ext.py",
75+
"*.pyd",
76+
"*.py",
77+
"shaders/*.inc",
78+
"shaders/*.comp",
79+
"shaders/*.glsl",
80+
"shaders/*.frag",
81+
"shaders/*.vert",
7682
"spirv-cross-c-shared.dll"
7783
]
7884
else:
7985
metadata['package_data']['pilotlight'] = [
8086
"__init__.py",
8187
"pilotlight.so",
82-
"pilotlight.pyi",
83-
"pl_core.py",
84-
"pl_draw_ext.py",
85-
"pl_starter_ext.py",
86-
"pl_ui_ext.py",
87-
"pl_pak_ext.py",
88-
"pl_shader_ext.py",
89-
"pl_vfs_ext.py"
88+
"*.py",
89+
"shaders/*.inc",
90+
"shaders/*.comp",
91+
"shaders/*.glsl",
92+
"shaders/*.frag",
93+
"shaders/*.vert"
9094
]
9195

9296
if "--force" in sys.argv:

0 commit comments

Comments
 (0)