Skip to content

Commit

Permalink
chore: Add script to help local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 20, 2021
1 parent c356227 commit 6edfc9f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/fixsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e

PYTHON_VERSIONS="${PYTHON_VERSIONS-3.7 3.8 3.9 3.10 3.11}"

for python_version in ${PYTHON_VERSIONS}; do
rm -rf "__pypackages__/${python_version}/lib/mkdocstrings"
rm -f "__pypackages__/${python_version}/lib/mkdocstrings.pth"
rm -rf "__pypackages__/${python_version}/lib/mkdocs_autorefs"
rm -f "__pypackages__/${python_version}/lib/mkdocs_autorefs.pth"
cp -r ../mkdocstrings/src/mkdocstrings "__pypackages__/${python_version}/lib/"
cp -r ../mkdocstrings-python/src/mkdocstrings/* "__pypackages__/${python_version}/lib/mkdocstrings"
cp -r ../mkdocs-autorefs/src/mkdocs_autorefs "__pypackages__/${python_version}/lib/"
done

0 comments on commit 6edfc9f

Please sign in to comment.