Skip to content

Commit cac2a2d

Browse files
committed
add special rule to exclude extended_types generation from generator
1 parent 2c2fb04 commit cac2a2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ gen-py: $(DEST)
6060
# for all the files in the schema folder, run the gen-python command and output the result to the top
6161
# level of the project. In other repos, we'd include mergeimports=True, but we don't do that with
6262
# linkml-model.
63+
# extended_types.yaml is excluded because gen-python produces an empty file for it;
64+
# the schema is not ready for Python code generation yet.
6365
@for file in $(wildcard $(PYMODEL)/model/schema/*.yaml); do \
6466
base=$$(basename $$file); \
67+
if [ "$$base" = "extended_types.yaml" ]; then continue; fi; \
6568
filename_without_suffix=$${base%.*}; \
6669
$(RUN) gen-python --genmeta $$file > $(DEST)/$$filename_without_suffix.py; \
6770
done

0 commit comments

Comments
 (0)