File tree Expand file tree Collapse file tree 2 files changed +23
-19
lines changed
Expand file tree Collapse file tree 2 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 33import distutils .cmd
44import os
55import sys
6+ import shutil
7+ import glob
68
79def 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 :
You can’t perform that action at this time.
0 commit comments