Skip to content

Commit 3cc2d13

Browse files
committed
Build: add METADATA file to wheel
1 parent a61d17a commit 3cc2d13

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build-system/luxmake/wheel.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
Tag: {}
2626
"""
2727

28+
_METADATA_SNIPPET = """\
29+
Metadata-Version: 2.2
30+
Name: pyluxcore
31+
Version: {}
32+
Summary: LuxCore Python bindings
33+
Keywords: raytracing,ray tracing,rendering,pbr,physical based rendering,path tracing
34+
Author: LuxCoreRender
35+
Requires-Python: >=3.9
36+
Requires-Dist: numpy>=2
37+
Requires-Dist: nvidia-cuda-nvrtc-cu12; sys_platform != "darwin"
38+
"""
39+
2840

2941
def _compute_platform_tag():
3042
"""Compute tag.
@@ -102,6 +114,10 @@ def make_wheel(args):
102114
with open(dist_info / "WHEEL", "w", encoding="utf-8") as f:
103115
f.write(_WHEEL_SNIPPET.format(tag))
104116

117+
# Export METADATA file
118+
with open(dist_info / "METADATA", "w", encoding="utf-8") as f:
119+
f.write(_METADATA_SNIPPET.format(version))
120+
105121
# Copy subfolders into tree
106122
shutil.copytree(
107123
SOURCE_DIR / "python" / "pyluxcore",

0 commit comments

Comments
 (0)