Skip to content

Commit 79734ea

Browse files
jbower-fbmeta-codesync[bot]
authored andcommitted
Make PythonWheelBuilder install .dist-info
Summary: It seems we need to "install" more than the rather hacky PythonWheelBuilder currently does. Unfortunately, I don't really know why the `.dist-info` directory was explicitly excluded before but apparently setuptools needs it to function correctly. Reviewed By: alexmalyshev Differential Revision: D92482792 fbshipit-source-id: 32d69ab3af53abe1a7595ef8f454a74f35c33023
1 parent 9e797f5 commit 79734ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/fbcode_builder/getdeps/py_wheel_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _build(self, reconfigure: bool) -> None:
151151
# Find sources from the root directory
152152
path_mapping = {}
153153
for entry in os.listdir(self.src_dir):
154-
if entry in (dist_info_name, data_dir_name):
154+
if entry == data_dir_name:
155155
continue
156156
self._add_sources(path_mapping, os.path.join(self.src_dir, entry), entry)
157157

0 commit comments

Comments
 (0)