Skip to content

Commit

Permalink
Don't try to aggregate requirements/__pycache__/base.txt in setupto…
Browse files Browse the repository at this point in the history
…ols (#15775)

Exlucde __pycache__ in setuptools
  • Loading branch information
akihironitta authored Dec 8, 2022
1 parent 0d822e4 commit ca5ca0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .actions/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _load_aggregate_requirements(req_dir: str = "requirements", freeze_requireme
load_requirements(d, file_name="base.txt", unfreeze=not freeze_requirements)
for d in glob.glob(os.path.join(req_dir, "*"))
# skip empty folder as git artefacts, and resolving Will's special issue
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0
if os.path.isdir(d) and len(glob.glob(os.path.join(d, "*"))) > 0 and "__pycache__" not in d
]
if not requires:
return None
Expand Down

0 comments on commit ca5ca0e

Please sign in to comment.