Skip to content

Commit cbef5fd

Browse files
akihironittaBorda
authored andcommitted
Don't try to aggregate requirements/__pycache__/base.txt in setuptools (#15775)
Exlucde __pycache__ in setuptools (cherry picked from commit ca5ca0e)
1 parent 57c27a8 commit cbef5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.actions/setup_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requireme
179179
load_requirements(d, file_name="base.txt", unfreeze=not freeze_requirements)
180180
for d in glob.glob(os.path.join(req_dir, "*"))
181181
# skip empty folder as git artefacts, and resolving Will's special issue
182-
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0
182+
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0 and "__pycache__" not in d
183183
]
184184
if not requires:
185185
return None

0 commit comments

Comments
 (0)