Skip to content

Commit

Permalink
remove map files for Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 10, 2024
1 parent d3af744 commit 972f483
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 27,615 deletions.
625 changes: 0 additions & 625 deletions python/PyQt6/3d/class_map.yaml

This file was deleted.

373 changes: 0 additions & 373 deletions python/PyQt6/analysis/class_map.yaml

This file was deleted.

18,796 changes: 0 additions & 18,796 deletions python/PyQt6/core/class_map.yaml

This file was deleted.

7,452 changes: 0 additions & 7,452 deletions python/PyQt6/gui/class_map.yaml

This file was deleted.

361 changes: 0 additions & 361 deletions python/PyQt6/server/class_map.yaml

This file was deleted.

23 changes: 15 additions & 8 deletions scripts/sipify_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ for root_dir in python python/PyQt6; do
module_dir=${root_dir}/${module}

rm ${module_dir}/class_map.yaml || true
touch ${module_dir}/class_map.yaml
if [[ ${root_dir} == "python" ]]; then
# not for PyQt6 for now
touch ${module_dir}/class_map.yaml
fi

# clean auto_additions and auto_generated folders
rm -rf ${module_dir}/auto_additions/*.py
Expand All @@ -73,20 +76,24 @@ It is not aimed to be manually edited
else
path=$(${GP}sed -r 's@/[^/]+$@@' <<< $sipfile)
mkdir -p python/$path
./scripts/sipify.pl $IS_QT6 -s ${root_dir}/$sipfile.in -p ${module_dir}/auto_additions/${pyfile} -c ${module_dir}/class_map.yaml $header &
CLASS_MAP_CALL=
if [[ ${root_dir} == "python" ]]; then
# not for PyQt6 for now
CLASS_MAP_CALL="-c ${module_dir}/class_map.yaml"
fi
./scripts/sipify.pl $IS_QT6 -s ${root_dir}/${sipfile}.in -p ${module_dir}/auto_additions/${pyfile} ${CLASS_MAP_CALL} ${header} &
fi
count=$((count+1))
done < <( ${GP}sed -n -r "s@^%Include auto_generated/(.*\.sip)@${module}/auto_generated/\1@p" python/${module}/${module}_auto.sip )
done
done
wait # wait for sipify processes to finish

for root_dir in python python/PyQt6; do
for module in "${modules[@]}"; do
module_dir=${root_dir}/${module}
echo "sorting ${module_dir}/class_map.yaml"
sort -n -o ${module_dir}/class_map.yaml ${module_dir}/class_map.yaml
done
for module in "${modules[@]}"; do
root_dir=python
module_dir=${root_dir}/${module}
echo "sorting ${module_dir}/class_map.yaml"
sort -n -o ${module_dir}/class_map.yaml ${module_dir}/class_map.yaml
done

echo " => $count files sipified! 🍺"
Expand Down

0 comments on commit 972f483

Please sign in to comment.