3535Author: LuxCoreRender
3636Requires-Python: >=3.9
3737Requires-Dist: numpy>=2
38- Requires-Dist: nvidia-cuda-nvrtc-cu12 ; sys_platform != "darwin"
38+ Requires-Dist: nvidia-cuda-nvrtc; sys_platform != "darwin"
3939"""
4040
41+ _ENTRYPOINTS_SNIPPET = """\
42+ [console_scripts]
43+ pyluxcoretest = pyluxcoretest:main
44+ pyluxcore-console = pyluxcoretools.console.cmd:main
45+ pyluxcore-maketx = pyluxcoretools.maketx.cmd:main
46+ pyluxcore-merge = pyluxcoretools.merge.cmd:main
47+ pyluxcore-netmenu = pyluxcoretools.netmenu.cmd:main
48+ pyluxcore-netconsole = pyluxcoretools.netconsole.cmd:main
49+ pyluxcore-netnode = pyluxcoretools.netnode.cmd:main
50+
51+ [gui_scripts]
52+ pyluxcore-netconsole-ui = pyluxcoretools.netconsole.ui:main
53+ pyluxcore-netnode-ui = pyluxcoretools.netnode.ui:main
54+ """
55+
56+
4157
4258def _compute_platform_tag ():
4359 """Compute tag.
@@ -96,8 +112,8 @@ def make_wheel(args):
96112
97113 logger .info ("Making wheel for version '%s' and tag '%s'" , version , tag )
98114 with (
99- tempfile .TemporaryDirectory () as wheeltree ,
100- tempfile .TemporaryDirectory () as raw_wheel ,
115+ tempfile .TemporaryDirectory (delete = False ) as wheeltree ,
116+ tempfile .TemporaryDirectory (delete = False ) as raw_wheel ,
101117 ):
102118 # We create an install tree, with all the wheel components, then we
103119 # pack it into a raw wheel and eventually we repair it.
@@ -121,12 +137,26 @@ def make_wheel(args):
121137 with open (dist_info / "METADATA" , "w" , encoding = "utf-8" ) as f :
122138 f .write (_METADATA_SNIPPET .format (version ))
123139
140+ # Export entry_points.txt file
141+ with open (dist_info / "entry_points.txt" , "w" , encoding = "utf-8" ) as f :
142+ f .write (_ENTRYPOINTS_SNIPPET )
143+
124144 # Copy subfolders into tree
125145 shutil .copytree (
126146 SOURCE_DIR / "python" / "pyluxcore" ,
127147 wheeltree / "pyluxcore" ,
128148 dirs_exist_ok = True ,
129149 )
150+ shutil .copytree (
151+ SOURCE_DIR / "python" / "pyluxcoretest" ,
152+ wheeltree / "pyluxcoretest" ,
153+ dirs_exist_ok = True ,
154+ )
155+ shutil .copytree (
156+ SOURCE_DIR / "python" / "pyluxcoretools" ,
157+ wheeltree / "pyluxcoretools" ,
158+ dirs_exist_ok = True ,
159+ )
130160 shutil .copytree (
131161 INSTALL_DIR / "pyluxcore" ,
132162 wheeltree / "pyluxcore" ,
0 commit comments